Open challenge : Write a C++ program to enter a string from the user and find the number of outcomes of each letter
Answers
Answered by
6
ANSWER
...........
#include
<iostream>
using namespace std;
int main()
{
char str[100]; cout
<< "Enter a string: ";
cin >> str; cout << "You entered: " << str << endl; cout << "
\nEnter another string: "
; cin >> str; cout << "You entered:
"<<str<<endl; return 0;
}
...........
#include
<iostream>
using namespace std;
int main()
{
char str[100]; cout
<< "Enter a string: ";
cin >> str; cout << "You entered: " << str << endl; cout << "
\nEnter another string: "
; cin >> str; cout << "You entered:
"<<str<<endl; return 0;
}
Similar questions