1.

Write a program to find the greatest of three numbers using nested if​

Answer»

ong>ANSWER:

chevron_right. filter_none.

filter_none. #include int MAIN() { int A, B, C, largest; printf ( "ENTER three numbers: " ); scanf ( "%d %d %d" , &A, &B, &C); largest = A > B ? ( A > C ? A : C) : (B > C ? B : C); printf ( "%d is the largest number." , largest); return 0; }

chevron_right. filter_none.



Discussion

No Comment Found