Write an algorithm to accept two numbers and to find the smallest of the two numbers
Answers
Answered by
0
Algorithm of print the smallest of two number is given below
Step 1: Start
Step 2: Read the two number a1,1b1 by the user.
Step 3: Test the condition if a1< b1 go to
Step 4: otherwise go to
Step 5: Assign t= a1 and print the value of a1.
Answered by
2
Answer:
The algorithm for the above problem is as follows:
- Input the first number.
- Input the second number.
- Check, Is the first number is smaller than the second number or not.
- If yes, print the first number.
- If no, Print the second number.
Similar questions