Question: write a program to add together all EVEN numbers from 2 through 1 8 . Additionally, display all the numbers that you are adding together.

write a program to add together all EVEN numbers from 2 through
18. Additionally, display all the numbers that you are adding together.
num =1
total =0
while num <=5:
total = total + num
num = num +1
print("Total is: ", total)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!