ProAnswers.org

Write a C program to find out the given number is Greater than100 or Not

#include

#include 

void main() 

{ 

int a; 

clrscr(); 

printf(“enter the number

”);

scanf(“%d”,&a); 

if(a>100) 

printf(“greater than 100”); 

else 

printf(“less than 100”); 

getch(); 

} 

Output: 

enter the number 

366 

greater than 100