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