In this program, you'll learn to print largest among two numbers.
#include<stdio.h>
int main()
{
int a, b;
printf("Enter value of two variables: ");
scanf("%d%d", &a, &b);
if(a > b)
{
printf("a is greater");
}
else
{
printf("b is greater");
}
return 0;
}
Enter value of two variables: 75 89
b is greater