Write Multiplication Table Using While Loop In Python
Write Multiplication Table Using While Loop In Python
Code:
Num = int(input("Enter The Number :"))
i = 0
while i<10 :
i = i+1
print(f"{Num}X{i}={Num*i}")
# or
# print(Num,"X",i,"=",Num*i)
# or
# print(str(Num) + "X" + str(i) + "=" + str(Num*i))
Comments
Post a Comment