Ask questions and get helpful answers.

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. 👍
  2. 👎
  3. 👁
  4. ℹ️
  5. 🚩

1 answer

  1. 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.

    1. 👍
    2. 👎
    3. ℹ️
    4. 🚩
    👤
    oobleck

Answer this Question

Related Questions

Still need help?

You can ask a new question or browse existing questions.