In the example discussed below, we have used the while loop in python to create the multiplication table. We declared a variable ‘i’ and initialized the variable by 1. The loop will keep iterating until the i value reaches 10. Each time the while loop is iterated, the value of i will be increased by 1. When the value of i becomes greater than 10, the loop will be terminated.

**Source Code for Python Multiplication table using the while loop**

#include int main() { Â Â int a, b; Â Â Â printf("Enter a Number "); Â Â scanf("%d",&a); Â Â b=1; Â Â while(b<=10){ Â Â Â Â Â Â Â Â Â Â Â Â Â printf("%d * %d = %d \n", a, b, a*b); Â Â Â Â ++b; Â Â } Â Â Â Â getch(); Â Â Â } Output: Enter a NumberÂ 4 4 * 1 = 4 4 * 2 = 8 4 * 3 = 12 4 * 4 = 16 4 * 5 = 20 4 * 6 = 24 4 * 7 = 28 4 * 8 = 32 4 * 9 = 36 4 * 10 = 40

#### Related Questions

- How do you do the Fibonacci sequence in Python?
- How do you make a multiplication table in Python?
- How do you know if a python is positive or negative?
- How do you find prime numbers in Python?
- How do you find the sum of n numbers in Python?
- Is there a Fibonacci function in Python?
- How do you know if a number is negative?
- How do you find the nth Fibonacci number in Python?
- How do you get rid of the negative sign in Python?
- How do you find the prime numbers from 1 to 100 in Python?
- How do you find the sum of first n natural numbers in Python?
- How do you write a Fibonacci series for a loop in Python?
- What is the function for multiplication in Python?
- How do you change positive to negative in Python?
- How do you sum numbers in Python?

#### Related Topics

- Python Program to Find Armstrong Number in an Interval
- Python Program to Check Armstrong Number
- Python Program to Find the Factorial of a Number
- Python Program to Print the Fibonacci sequence
- Python Program to Find the Largest Among Three Numbers
- Python Program to Display the multiplication Table
- Python Program to Check if a Number is Odd or Even
- Python Program to Check if a Number is Positive, Negative or 0
- Python Program to Check Prime Number
- Python Program to Print all Prime Numbers in an Interval
- Python Program to Find the Sum of Natural Numbers
- Python Program to Find Hash of File
- Python Program to Merge Mails
- Python Program to Find the Size (Resolution) of an Image
- Python Program to Find ASCII Value of Character
- Python Program to Convert Decimal to Binary, Octal and Hexadecimal
- Python Program to Convert Decimal to Binary Using Recursion
- Python Program to Display Calendar
- Python Program to Find the Factors of a Number
- Python Program to Find Factorial of Number Using Recursion
- Python Program to Display Fibonacci Sequence Using Recursion
- Python Program to Find HCF or GCD
- Python Program to Find LCM
- Python Program to Check Leap Year
- Python Program to Find Sum of Natural Numbers Using Recursion
- Python Program to Find Numbers Divisible by Another Number
- Python Program To Display Powers of 2 Using Anonymous Function
- Python Program to Shuffle Deck of Cards
- Python Program to Add Two Numbers
- Python Program to Calculate the Area of a Triangle
- Python Program to Make a Simple Calculator
- Python Program to Convert Celsius To Fahrenheit
- Python Program to Print Hello world!
- Python Program to Convert Kilometers to Miles
- Python Program to Solve Quadratic Equation
- Python Program to Generate a Random Number
- Python Program to Find the Square Root
- Python Program to Swap Two Variables
- Python Program to Add Two Matrices
- Python Program to Sort Words in Alphabetic Order
- Python Program to Count the Number of Each Vowel
- Python Program to Check Whether a String is Palindrome or Not
- Python Program to Remove Punctuations From a String
- Python Program to Transpose a Matrix

## Leave a Reply