Write an algorithm to find the smallest number in between two given numbers.
An Algorithm to find the smallest between two numbers.
- Input the first number and store it, consider to NUM1.
- Input the second number and store it, consider to NUM2.
- Now check with IF(NUM1<NUM2) then Go to Step 7 else continue
- Show “ NUM2 is the Smallest number”.
- Go to Step 8
- Show “ NUM1 is the Smallest number”.