Python #5: Basic While Loop

#Programmer: Akinwale Owi
#Company: Dagba Computers
#Program: Purpose:Basic While Loop

#Beginning of Program

#While Loop Variable
c = 0
#Beginning of While Loop
while(c<5):
    print('Value of C is Currently: ',c)

    #Adding 1 to C eac iteration so the loop progresses
    c= c+1

#When loop terminates
else:
    print('Loop Done')

Leave a comment