Math, asked by Karanbhutna9487, 4 months ago

Algorithym find the greater number between two numbera

Answers

Answered by shantanukumar9686
2

Answer:

If two numbers have the same number of digits, the number with the bigger digit on the left hand side is greater. If the leftmost digits are the same we compare the next digit to the right and keep doing this until the digits are different.

Step-by-step explanation:

Algorithm:

Step 1: Start.

Step 2: Read a, b . / * a, b two numbers */

Step 3: If a>b then /*Checking */

Display “a is the largest number”.

Otherwise.

Display “b is the largest number”.

Attachments:
Similar questions