76 311
Assignments Done
Successfully Done
In May 2019

Answer to Question #20728 in C++ for Anees

Question #20728
Given an age guess out if someone is a baby, toddler, child, teenager, adult or an old codger.
Expert's answer

using namespace std;

int main()
int age=0;

cout<<"Please enter AGE" <<endl;
cout<<endl ;

if(age<2) cout<<"toddler";
if((age<5)&&(age>2)) cout<<"baby"<<endl;
if((age<13)&&(age>5)) cout<<"child";
if((age<18)&&(age>13)) cout<<"teenager";
if((age<50)&&(age>18)) cout<<"adult";
if(age>50) cout<<"old codger";
return 0;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


Assignment Expert
30.11.15, 10:57

This this is gcu compiler

Arslan malik
29.11.15, 07:56

is this in gcu compiler

Leave a comment

Ask Your question

Privacy policy Terms and Conditions