(adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "ca-pub-2960223314593660", enable_page_level_ads: true }); Program to find multiplication table of a given number - TecGlance

Header Ads

Program to find multiplication table of a given number


Program to find multiplication table of a given number

a=input("Enter the number whose multiplication table is to be printed : ")
for n in range(1,11):
    print" ",a," * ",n," = ", a*n

OUTPUT :  

 Enter the number whose multiplication table is to be printed :  2
  2  *  1  =  2
  2  *  2  =  4
  2  *  3  =  6
  2  *  4  =  8
  2  *  5  =  10
  2  *  6  =  12
  2  *  7  =  14
  2  *  8  =  16
  2  *  9  =  18
  2  *  10  =  20

No comments

Powered by Blogger.