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.
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions