this program is supposed to receive an integer between 0 and 100
and if the integer less than 5 it print a sentence
and if it's bigger than 5 it prints another sentence
here is the code
Code:
#include<stdio.h>
#include<stdlib.h>
main()
{
int a;
printf("could you enter an integer from one to hundread:\n");
scanf("%d",a);
if( a>100 || a<0)
{
printf("I said enter an intger between 0 and 100\n");
scanf("%d",a);
}
if ( a<=0 && a>=00)
{
if ( a>5)
{
printf(" you're much more stupid than i thought");
getchar();
}
else
{
printf(" congratulation you're so stupid");
getchar();
}
}
return 0;
}