Ad Code

C program to check whether the first number is greater than second number using simple if statement.

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:-



Post a Comment

0 Comments

Ad Code