Back To C++ Flow of Control Index
//program to demonstrate if-else statement example 8, check whether a is greater than or equal to 10 or less than 10 #include
#include
void main() { int a; clrscr(); cout<<"enter value for a"; cin>>a; if(a>=10) { cout<<"a is either greater than or equal to 10"; } else { cout<<"a is less than 10"; } getch(); }