
Patrick B. answered 04/12/21
Math and computer tutor/teacher
using namespace std;
#include <iostream>
Go()
{
char chChar;
cout << "Please input the character :> ";
cin >> chChar;
if ((chChar>='A') && (chChar<='J'))
{
cout << "character " << chChar << " belongs to group #1 A-J " << endl;
}
else if ((chChar>='K') && (chChar<='P'))
{
cout << "character " << chChar << " belongs to group #2 K-P " << endl;
}
else if ((chChar>='Q') && (chChar<='Z'))
{
cout << "character " << chChar << " belongs to group #3 Q-Z " << endl;
}
}
int main()
{
Go();
}