//WAP TO SHOW THE FUNCTIONING OF if-else STATEMENT.
#include
#include
void main()
{
int a;
clrscr();
printf("Enter The Value Of X=");
scanf("%d",&a);
if(a<5)
printf("\n\n\nValue is Less Than Five");
else
printf("\n\n\nValue is Greater Than Five");
getch();
}
/******OUTPUT******
Enter The Value Of X=4
Value is Less Than Five
*/
No comments:
Post a Comment