Print Table Using While Loop In Python code example
Example 1: write a python program to find table of a number using while loop
a=int(input("enter table number"))
b=int(input("enter the number to which table is to printed"))
i=1
while i<=b:
print(a,"x",i,"=",a*i)
i=i+1
Example 2: Print Table Using While Loop In Python
number = int(input("Enter A Number : "))
num = 1
while num <= 10:
total = num * number
print(total)
num = num +1