#include <iostream>
using namespace std;
main()
{
string s; int i;
cout<<"Enter a word or a sentence\n";
cin>>s;
for(i=0;i<s.length();i++)
cout<<s.at(i)<<"\n";
}
//Java Program to count the total number of characters in a string import java.util.*; public class CountChars { public static void mai...
No comments:
Post a Comment