Computer Science, asked by chisomikeokwu, 10 months ago

Write an algorithm to calculate the sum of three numbers A, B and C

Answers

Answered by Vanshika24022007
0

Explanation:

Step 1: Start

Step 2: Declare variables a,b and c.

Step 4: If a>b

If a>c

Display a is the largest

Else

Display c is the largest

Else

If b>c

Display b is the largest

Else

Display c greatest

Step 5: Stop

OR

Step 1: Start

Step 2: Declare variables a,b and c.

Step 4: If a>b && a>c then goto step 7

othervise goto step 5

Step 5: if b>a && b>c then goto step 8

othervise goto step 6

Step 6: print c is greater goto step9

Step 7: print a is gresater goto step9

Step 8: print b is greater goto step9

Step 9: stop

hope it helps

Similar questions