C Program to check whether the given number is greatest number

   #include <stdio.h> 
int main()
{

int num1, num2;
printf("Please enter the first number\n");
scanf("%d",&num1);
printf("Please enter the second number\n");
scanf("%d",&num2);
if(num1 > num2)
{ 
printf(“%d is greater”,num1);
}
else
{
printf(“%d is greater”,num2);
}
return 0;
}

Output:


Please enter the first number: 20
Please enter the second number: 40
40 is greater
20