Computer Science, asked by putririska88971, 7 months ago

Write an algorithm to accept two numbers and to find the smallest of the two numbers

Answers

Answered by Anonymous
0

\huge\bold\blue{Answer}

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 Anonymous
2

Answer:

The algorithm for the above problem is as follows:

  1. Input the first number.
  2. Input the second number.
  3. Check, Is the first number is smaller than the second number or not.
  4. If yes, print the first number.
  5. If no, Print the second number.

Similar questions