Back To C Flow of Control Index
//program to demonstrate if-else statement example 9, check whether a is less than or equal to 10 or greater than 10 #include
#include
void main() { int a; clrscr(); printf("enter value for a"); scanf("%d",&a); if(a<=10) { printf("a is less than or equal to 10"); } else { printf("a is greater than 10"); } getch(); }