You are on page 1of 1

#include<stdio.

h>
int main()
{
int age;
printf("Enter your age:\n");
scanf("%d",&age);
if(age>=18 && age <=100){
printf(" you're old\n");}
else if(age>=0 && age <=18){
printf(" you're young\n");
}
else {
printf(" the result is incorrect\n");}
}

You might also like