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.

1 answer

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.