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