CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//by sreejith
#include <iostream>
using namespace std;
int main() {
int age;
cin>>age;
cout<<"Please, introduce your age:"<<endl;
if(age >= 18 && age <65) {
//change 1
cout << "Adult"<<endl;
}
else if(age>=65 && age<100){
//change 2
cout<<"Old man/lady"<<endl;
}
else if(age==100){
cout<<"What a beautiful age!"<<endl;
}
else if(age>100){
cout<<"You're so old!"<<endl;
}
else if (age<18){
//change 3
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run