#include <stdio.h>
int main()
{
int num1, num2;
// Ask user to enter the two numbers
printf("Please Enter Two different values\n");
// Read two numbers from the user
scanf("%d %d", &num1, &num2);
(num1 >= num2)?((num1 ==num2)?printf("Both numbers are equal"):printf("%d is Largest\n", num1)):printf("%d is Largest\n", num2);
return 0;
}
Output:
Please Enter Two different values 6 6 Both numbers are equal
Output:
Please Enter Two different values 6 6
need an explanation for this answer? contact us directly to get an explanation for this answerBoth numbers are equal