Call/WhatsApp: +1 914 416 5343

Python program

Write a Python program using a while loop to print the addition (add1) of all numbers from 100 to 0. In the same file, use a for loop to print the same addition (add2).

At the end of your program you should check that the two results (add1 and add2) are the same and display an appropriate message.

Your output should have the following lines:

add1 = 100 + 98 + 96 + ….. + 0 using the while loop

add2 = 100 + 98 + 96 + ….. + 0 using the for loop

Compare between add1 and add2.