#include
#include
int main()
{
char num[2];
int number;
printf("Enter a number from 0 to 9:");
gets(num);
number=atoi(num);
if(number<5)
{
printf("That number is less than 5!\n");
}
else if(number==5)
{
printf("You typed in 5!\n");
}
else
{
printf("That number is more than 5!\n");
}
return(0);
}
Enter a number from 0 to 9:2
That number is less than 5!