cahees cahees
  • 01-05-2021
  • Computers and Technology
contestada

Python - Write a program to print the multiplication table as shown in the image by using for loops.

Python Write a program to print the multiplication table as shown in the image by using for loops class=

Respuesta :

sandlee09
sandlee09 sandlee09
  • 06-05-2021

Answer:

Explanation:

The following python code creates the multiplication table for 10 rows and 10 columns. This code uses nested for loops to traverse the table and print out the product of each multiplication. The image attached shows the output of the code.

for x in range(1, 11):

       for y in range(1, 11):

           z = x * y

           print(z, end="\t")

       print()

Ver imagen sandlee09
Answer Link

Otras preguntas

Kari snagged a cigarette out of her mom's purse. she had always wondered why her mom did something so smelly and teeth-yellowing. that first cigarette made kari
LOTS OF POINTS!!! Name the three main climate zones. Explain two major differences between the three climate zones
Geometry help, will upvote best answer!!
An item that was selling for 72.00 dollars is reduced to 60.00 dollars. find the percent decrease in price
The attendance at a seminar in one year was 500 in your to the attendence changed by 100 what was the percent change in attendance
What is the radius of a circle with the equation x2 + y2 – 14x + 10y = 250?
Read this letter by US General Ulysses S. Grant. Which sentences most clearly indicate that the writting style is informal and that this is a personal letter?
Plz help me!!!!!!!!!!!!!!
What is the largest source of oil in the oceans
Which decimal numbers are equivalent to 2/5 ? choose all answers that are correct. a. 0.4 b. 0.2 c. 0.40 d. 0.20 e. 0.02 f. 0.04?