# -*- coding: utf-8 -*-
"""
Created on Tue May  7 18:14:18 2019

@author: Dinesh Prajapat
"""

# Print all the numbers from 1 to 10 using condition in while loop

num = 0

while(num<=10):
    print(num)
    num = num+1
    
#  Print all the numbers from 1 to 10 using while True loop
num2 = 0
while True:
    if num2 <=10 and num2 % 2 ==0:
        print(num2)
        num2 = num2+1
    

#  Print all the even numbers from 1 to 10 using condition in while loop

num3 = 0
while num3 <=10:
    if num3 % 2 ==0:
        print(num3)
    num3 = num3 + 1
    
#  Print all the even numbers from 1 to 10 using while True loop

num4 = 0
while True:
    if num4 <=10 and num4 % 2 ==0:
        print(num4)
    num4 = num4 + 1


#  Print all the odd numbers from 1 to 10 using condition in while loop
num5 = 0
while num5 <= 10:
    if num5 % 2 == 1:
        print(num5)
    num5 = num5 + 1
    

#  Print all the odd numbers from 1 to 10 using while True loop
    
num6 = 0
while True:
    if num6 <=10 and num6 % 2 == 1:
        print(num6)
    num6 = num6 + 1







