#include <stdio.h>
#include <stdlib.h>
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);
}
|