check variable value is
greater then 10 or not:-
#include<stdio.h>
#include<conio.h>
void main()
int a,b;
clrscr();
printf("enter the value of a = ");
scanf("%d",&a);
if(a>10)
{printf("the value of a is greater then 10");}
else
{printf("the value of a is smaller then 10");}
getch();
}
Output:-
Comments
Post a Comment