Pattern 1:- Example => input : 4 output : **** **** #include<iostream> using namespace std; int main(){ int n; cin>>n; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cout<<"*"<<" "; } cout<<endl; }...
Question 1: Count a number present in a string. Example 1: Input : abhi12shek34yad Output : 4 Example 2: Input : avbaba960 Output : 3 Example 3: Input : 52abhiav Output : 2 CODE 1 : #include<iostream> #include<string> using namespace std; int main(){ string s; getline(cin,s); int inr=0; f...