Computer Science, asked by poornimachavla2020, 4 months ago

Write an algorithm to take two numbers as input from the user and print the greater
of the two numbers

Answers

Answered by mj8303987
3

Answer:

algorithm to find out a greater number among two numbers given by user

Explanation:

step 1:  create 2 variables named A and B

step 2: ask the user for the value of A and B

step 3: compare A and B

step 4: if A > B then go to step 6

step 5: if A < B then go to step 8

step 6: display A is greater than B

step 7: terminate the algorithm

step 8: display B is greater than A

step 9: terminate the algorithm

Similar questions