67 001
Assignments Done
99,2%
Successfully Done
In November 2018

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
#include<iostream>
#include<stdlib.h>

using namespace std;

int main()
{
int age=0;

cout<<"Please enter AGE" <<endl;
cin>>age;
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";
system("pause");
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!

Comments

Assignment Expert
30.11.15, 10:57

This this is gcu compiler

Arslan malik
29.11.15, 07:56

Hello
is this in gcu compiler

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions