Write an algorithm to find the greatest of three numbers
Answers
Answered by
2
Answer:
The algorithm is defined as :
Step 1: Read X, Y, Z. Step 2 : If X > Y continue step 5. Step 3: If Y>Z then print “Y is the largest “and continue step 7. Step 4: Continue step 6.♥️
Explanation:
Thanku♥️
Answered by
0
Answer:
step 1: start
step 2: Read three numbers X,Y and Z
step 3: if X is greater than Y, then go to step 5, otherwise go to step 4
step 4: if X is greater than Z, then print "Y is the greatest" and go to step 7, otherwise go to step 6
step 5: if X is greater than Z, print "X as the greatest" and go to step 7, otherwise go to step 6
step 6: print "Z as the greatest"
step 7: stop
Similar questions