Computer Science, asked by benadictpabinu886, 4 months ago

what will be the output (value of a) of the following program?

a=2
a=a+3
print (a)

plz answer fast don't cheat

If you give the correct answer I will mark it as brainliest

Answers

Answered by BrainlyProgrammer
2

Given:-

  • a=2

What to find?

  • Final value of a.

Answer:-

5

Explaination:-

  1. Intial value of a is 2
  2. a=a+3...Here value of a gets increased by 3
  3. So a becomes 5
  4. print(a) ....This statement prints the final value of a.

•Dry Run attached

Attachments:
Similar questions