Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a pseudocode that reads two integers and multiplies them together and print out the result if both numbers are even, otherwise add the two
Write 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 and the program should print the result
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 and check the
remainder.
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