A very simple age determiner using if - else statement in C++.
I am currently accepting programming work, it project, school programming projects , thesis and capstone projects, IT consulting work and web development work kindly contact me in the following email address for further details. If you want to advertise in my website kindly contact me also in my email address also. Thank you.
My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.
I am currently accepting programming work, it project, school programming projects , thesis and capstone projects, IT consulting work and web development work kindly contact me in the following email address for further details. If you want to advertise in my website kindly contact me also in my email address also. Thank you.
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.
Program Listing
age.cpp
#include <iostream.h>
#include <stdlib.h>
int age main()
{
cout<<"Enter age" ;
cin>> age;
if ((age>=0)&&(<=2))
else if cout<< "baby"
if ((age>=3)&&(<=5))
else if cout<< "toddler"
if ((age>=6)&&(<=12))
else if cout<< "child"
if ((age>=13)&&(<=15))
else if cout<< "adolescent"
if ((age>=16)&&(<=19))
else if cout<< "teenager"
if ((age>=20)&&(<=50))
else if cout<< "adult"
else cout<< "senior citizen"
system("PAUSE");
return 0;
}
No comments:
Post a Comment