Question: [ 5 marks ] ( Simple Calculations ) Write a pseudocode that reads two positive numbers and displays the sum and product ( multiplication )

[5 marks](Simple Calculations) Write a pseudocode that reads two positive numbers
and displays the sum and product (multiplication) of the numbers. If either number is
negative, the pseudocode displays an error message. [Hint: You can use OR to combine
two conditions.]
Here is a sample run:
Enter two positive integers: 46
Sum is 10. Product is 24.
Enter two positive integers: -46
Please enter positive numbers.
 [5 marks](Simple Calculations) Write a pseudocode that reads two positive numbers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!