Asked by Jo
Draw a flowchart and write pseudocode to represent the logic of a program that allows the user to enter two values. The program outputs the sum of and the difference between the two values.
Answers
Answered by
oobleck
read x,y
print x+y, x-y
this allows for negative difference, if x<y
you might have to make some adjustments if you always want to get a positive difference.
print x+y, x-y
this allows for negative difference, if x<y
you might have to make some adjustments if you always want to get a positive difference.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.