While & do while loop in C++
 
 While in CPP . A  while  loop statement repeatedly executes a target statement as long as a given condition is true .  This is also a loop Structure , but is an enter-controlled one  Syntax: while( condition is true) {  action1; } action 2; Program : Write a program in CPP to count the number of alphabets ,digit and special Symbol                @#$%&)using while loop.  #include<iostream> using namespace std; int main() {           char  str[100];            int i=0 ,digit=0,alphabets=0,special=0,characters=0 ,count=0; 	 cout<<"Enter the string :"; 	 gets(str); 	 cout<<"Enter string is "<<str<<"\n"; while(str[i]!='\0') { 	 count++; 	 i++; } i=0; while(str[i]!='\0') { 	 if(str[i]>='0' && str[i]<='9') 	 { 		 digit++; 	 } 	 if(str[i]=='@' ||str[i]=='#' ||str[i]=='$' ||str[i]=='%'||str[i]=='^'||...
 
 
 
 
 
 
 
 
