first = 2
second = 3
third = first * second
print first, second, third
first = first + second + third
third = second * first
print first, second, third
Answers
The result that the computer will calculate is (I have written the following as if I'm a computer and what I will do on reading those commands):-
"Ok boss, creating variables first, second and third.
Assigning values:
first = 2
second = 3
Calculating third = first × second
third = 6
Display output:
Calculating (new) first = first + second + third
first = 2 + 3 + 6 = 11
Calculating (new) third = second × first
third = 3 × 11 = 33
Display output:
Program processing complete."
Hope you found my answer helpful. Keep Smiling!
Explanation:
first = 2
second = 3
calculating third = first *second
third = 2*3=6
display output = 2,3,6
calculating new first = first + second+third
new first = 2+3+6=11
calculating new third = second * first
new third = 3*11=33
display output
11,3,33