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