Pages
Home
Thursday, October 13, 2011
Write a program that will display "Pretty Young" if age is lesser than 18, and will display "You Old" if age is greater than 18.
#include<stdio.h>
#include<conio.h>
int main()
{
int AGE;
printf("Enter age:");
scanf("%d",&AGE);
if ( AGE <= 18 )
{
printf("Pretty Young!");
}
else
{
printf("Your Old!");
}
getch();
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment