C programming
Uses of
If else
#include<stdio.h>
#include<conio.h>
void main()
{
int a,x;
clrscr();
printf("Input number::");
scanf("%d",&x);
a=100;
if(x>=a)
printf("This is upto 100");
else
printf("wrong");
getch();
}
Output: a number you entered is under 100 or not.
No comments:
Post a Comment
Please comment bellow. Share your knowledge