Question: Write a pseudocode that reads two iWrite a pseudocode that reads two integers and multiplies them together and print out the result if both numbers

Write a pseudocode that reads two iWrite a pseudocode that reads two integers and multiplies them together and print out the result if both
numbers are even, otherwise add the two numbers up, and print out the result.
For example, if the user gives two numbers 5 and 6, the program should print the result 11.
Note:
Beware, a pseudocode does not follow any specific syntax of a programming language, meaning it
is not a code. Do not answer this problem with MATLAB codes.
Your pseudocode cannot directly write if the numbers are even, ..., instead your code needs to
mathematically check if the numbers are even. For example, divide the number by 2 and check the
remainder.ntegers and multiplies them together and print out the result if both
numbers are even, otherwise add the two numbers up, and print out the result.
For example, if the user gives two numbers 5 and 6, the program should print the result 11.
Note:
Beware, a pseudocode does not follow any specific syntax of a programming language, meaning it
is not a code. Do not answer this problem with MATLAB codes.
Your pseudocode cannot directly write if the numbers are even, ..., instead your code needs to
mathematically check if the numbers are even. For example, divide the number by 2 and check the
remainder.

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!