write an algorithm to find the largest number among three numbers
Answers
Answered by
0
Answer:
- chevron_right.
- #include <stdio.h> 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.
Similar questions