C program to check whether the first number is greater than second number using simple if statement.
#inlcude<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf(“Enter the two numbers:”);
scanf(“%d%d”,&a,&b);
if(a>b)
{
printf(“First Number is Greater than Second Number”);
}
getch();
}
Output:-
Also read: What is decision making statements.

0 Comments
Have any query? Want any type of module?
Please comment it down and let me know.