Computer Science
Write a pseudocode that reads two numbers and divide one by another and display the quotient.
Algo & Flowcharts
6 Likes
Answer
Step 1: INPUT num1
Step 2: INPUT num2
Step 3: IF num2 == 0 THEN
Step 4: PRINT "Error: Division by zero is not allowed."
ELSE
Step 5: COMPUTE quotient = num1 / num2
Step 6: PRINT quotient
Answered By
2 Likes
Related Questions
What is the difference between Script mode and Interactive mode in Python?
Differentiate between flow chart and algorithm.
Two friends decide who gets the last slice of a cake by flipping a coin five times. The first person to win three flips wins the cake. An input of 1 means player 1 wins a flip, and a 2 means player 2 wins a flip. Design an algorithm to determine who takes the cake?
Write a pseudocode to print all multiples of 5 between 10 and 25 (including both 10 and 25).