2012-12-18T09:41:03-05:00
Given an age guess out if someone is a baby, toddler, child, teenager, adult or an old codger.
1
2015-11-30T03:56:52-0500
#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 !
Learn more about our help with Assignments:
C++
Comments
This this is gcu compiler
Hello is this in gcu compiler