Computer Science, asked by vara2080, 10 months ago

write an algorithm to find the largest number among three numbers​

Answers

Answered by sahanaa76
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