Computer Science, asked by rajjadhavjadhav0804, 5 months ago

write algorithm to find largest num from three num​

Answers

Answered by Anonymous
1

\huge\underline{\overline{\mid{\bold{\purple{Answer :)}}\mid}}}

  1. chevron_right. filter_none.
  2. filter_none. #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; }
  3. chevron_right. filter_none...................
Answered by Yamini2110
0

Algorithm :

Step 1 : Start

Start 2 : Input a, b, c

Start 3 : if a > b goto step 4, otherwise goto step 5

Start 4 : if a > c goto step 6, otherwise goto step 8

Start 5 : if b > c goto step 7, otherwise goto step 8

Start 6 : Output "a is the largest", goto step 9

Start 7 : Output "b is the largest", goto step 9

Start 8 : Output " c is the largest", goto step 9

Start 9 : Stop

Similar questions