gg告诉我一些事情,
经过我的一些改变,
就变成了这样:
#include
#include
using namspace std;
int main()
{
//Declare variables
int age;
string status;
//Get age
cin >> age;
if(age < 7)
status = "Joy.";
else if(age >=7 && age <= 25)
status = "Worry on school's performance, e.g. result.";
else if(age >= 20 && age <= 30)
status = "Find and catch people?";
else if(age >= 30)
status = "Worry family and children.";
else if(age >= 60)
status = "Illness find you?";
//Print the output
cout << status << endl;
return 0;
}
Note: Don't know will this program have any compilation error?
Labels: personal
@ 00:00
learn driving