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

Header Ads

Program to print multiplication table of any number.

Algorithm:

Step 1: Start

Step 2: Assign i=1

Step 3: Read a number, num
Step 4: Repeat step 5 until i=11 reach
Step 5: Print num*i
Step 6: Stop

Flowchart:
  
Program code:

num=int(input('Enter a number '))
i=1
for i in range(1,11):
    print num,'*',i,'=',num*i

No comments

Powered by Blogger.