Write a python program to print first 10 numbers using a while loop.

 

                                      Write a python program to determine whether a person is eligible to vote.

Write a python program to print first 10 numbers using a while loop.

PROGRAM:

i=0
while (i<=10):
    print(i,end=" ")
    i=i+1

OUPUT:
0 1 2 3 4 5 6 7 8 9 10 


No comments:

Post a Comment




Copyright Ⓒ 2022 | Mechpedia | All Right Reserved.