Write an algorithm to print the bigger of any two unique given number
Answers
Answered by
1
Required algorithm is as follow :-
Step 1
- Read 2 numbers A and B
Step 2
- Compare both A and B
Step 3
- If A is greater than B then, print A else print B
Step 4
- Stop
Answered by
1
Answer:
1. Step 1: Start.
2. Step 2: Read a, b . / * a, b two numbers */
3. Step 3: If a>b then /*Checking */
4. Display “a is the largest number”.
5. Otherwise.
6. Display “b is the largest number”.
Similar questions