Answers for "Example code of while loop in python"

0

Example code of while loop in python

total = 0
num = int(input("Enter the number: "))
while num != 7:
    total = total+num
    num = int(input("Enter the number: "))
print("Sum: ", total)
Posted by: Guest on April-10-2022

Code answers related to "Example code of while loop in python"

Python Answers by Framework

Browse Popular Code Answers by Language