Computer Science, asked by sanjayloh53gmailcom, 3 months ago

Rewrite the given instructions in QBASIC:. the sum of of p and q is multiplied by 2​

Answers

Answered by allysia
2

Expression form:

(p+q)*2

Explanation:

  • p+q will return the sum of p and q if they are defined.
  • (p+q)*2 and not p+q* 2 because in the former the sum will be done first then the result will be multiplied with 2.
  • If we were to write p+q*2 then q will be multiplied with 2 first and then p will be added to the result.
Answered by bajpriti
1

Explanation:

please mark as brainliest

Attachments:
Similar questions