#include using namespace std; int main() { string s,str; cout<<"Enter your string "<='a'&&s[i]<='z'||s[i]>='A'&&s[i]<='Z'||s[i]>='0'&&s[i]<='9') { str+=s[i]; } else { if(s[i]==' ') { count_1++; } else if(s[i]==',') { count_2++; } else if(s[i]==';') { count_3++; } } } cout<<"Total no. of space "< using namespace std; int main() { while(1) { int t=0; string s; getline(cin,s); for(int i=0; i