PYTHON PROGRAM TO PRINT MULTIPLICATION TABLE

Akshay Ak
1 min readJun 11, 2021

--

Hello Amigos!we are here to see about,how to create a python program to print multiplication table using for loop.

LANGUAGE & CONCEPTS INVOLVED: Python & For loop.

EXPLANATION:

We are going to use for loop to iterate again & again and print the multiplication table of the user’s input.This program displays the multiplication table of variable num (from 1 to 10).This program displays the multiplication table of variable num (from 1 to 10).

First get an integer input from the user and store it in the variable(here it is ‘num’). Then using print statement print the number for which you are going to display the multiplication table.

Then using for loop iterate i from 1 to 11.We should 11 instead of 10 because,we need the multiplication table upto 10.Then in the print statement multiply ‘num’ with ‘i’.Now because of for loop it would again multiply but this time ‘i’ would have value 2.Like this it goes on until it reaches 10.

FULL CODE:

OUTPUT:

For more details sign in @www.guvi.com

--

--

Akshay Ak
Akshay Ak

Written by Akshay Ak

0 Followers

JUST A VERY COMMAN MAN

No responses yet