#include <stdio.h>
#include <conio.h>
int main() {
int a, b, c;
printf("Enter amy three numbers: ");
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
if (a > c)
printf("%d is the largest number.", a);
else
printf("%d is the largest number.", c);
} else {
if (b > c)
printf("%d is the largest number.", b);
else
printf("%d is the largest number.", c);
}
getch();
return 0;
}
Enter amy three numbers: 54
25
5
54 is the largest number.
--------------------------------
Process exited after 10.69 seconds with return value 0
Press any key to continue . . .