Learn if else in C programming

#include<stdio.h>
main()
{
int a,b;
printf("Enter two numbers:");
scanf("%d%d",&a,&b);

if(a>b)
{
printf("%d is greater than %d",a,b);
}
else
{
printf("%d is greater than %d",b,a);
}
}

0 Comments