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