Write a program that counts the number of characters in the sentence entered by the user and displays it on the screen.
1
Expert's answer
2020-08-11T10:40:50-0400
#include<iostream>#include<string>usingnamespace std;
intmain(){
string str;
cout << "Enter your sentence\n";
getline(cin, str);
cout << "Number of characters per line is " << str.size();
return0;
}
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments