Write an algorithm to find the smallest number in between two given numbers.

An Algorithm to find the smallest between two numbers.

  1. Start
  2. Input the first number and store it, consider to NUM1.
  3. Input the second number and store it, consider to NUM2.
  4. Now check with IF(NUM1<NUM2) then Go to Step 7 else continue
  5. Show “ NUM2 is the Smallest number”.
  6. Go to Step 8
  7. Show “ NUM1 is the Smallest number”.
  8. End