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
2
Given:-
- a=2
What to find?
- Final value of a.
Answer:-
5
Explaination:-
- Intial value of a is 2
- a=a+3...Here value of a gets increased by 3
- So a becomes 5
- print(a) ....This statement prints the final value of a.
•Dry Run attached
Attachments:
Similar questions