If-else statement in c language.
#include<stdio.h>
#include<conio.h>
void main()
{
int x,y;
printf("enter the value of x and y=");
scanf("%d%d",&x,&y);
if(x>y)
{
printf(" x is greater. ");
}
else
{
printf("y is greater. ");
}
getch();
}
■》Output->
enter the value of x and y=>
3
8
y is greater.
Comments
Post a Comment