Check The Programming Section
#include<stdio.h>
int main(){
int num1, num2;
printf("Enter two numbers::");
scanf("%d %d",&num1,&num2);
if(num1>num2)
printf("%d is the largest of %d and %d",num1,num1,num2);
else if(num2>num1)
printf("%d is the largest of %d and %d",num2,num1,num2);
else
printf("Both numbers %d and %d are equal",num1,num2);
#include<stdio.h>
int main(){
int num1, num2;
printf("Enter two numbers:");
scanf("%d %d",&num1,&num2);
num1>num2?printf("%d is the largest of %d and %d",num1,num1,num2):
num2>num1?printf("%d is the largest of %d and %d",num2,num1,num2):
printf("Both numbers %d and %d are equal",num1,num2);
}