Advertisement
yiwen_akeni

multiplication table

Oct 2nd, 2022 (edited)
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. print("program of multiplication")
  2. x = int(input("x = "))
  3. y = int(input("y = "))
  4. n=0
  5. while n<=y:
  6.     print(x,"x",n,"=",x*n)  
  7.     n += 1
  8. print("-----------------")
  9. for i in (range(0,y+1)):
  10.     print(x,"x",i,"=",x*i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement