Answered step by step
Verified Expert Solution
Question
1 Approved Answer
[ 5 marks ] ( Simple Calculations ) Write a pseudocode that reads two positive numbers and displays the sum and product ( multiplication )
marksSimple 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:
Sum is Product is
Enter two positive integers:
Please enter positive numbers.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started