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

The "A" in ACL stands for
what if another company offers a rate of 0.05 per minute. How would you find the unit rate
an item in regular priced at $81. it is on sale for 35% off the regular price.
find the x- and y- intercepts of the line with the equation 3x+4y=-12
340 pages 20% decrease
Which of the following statements is true? Question 19 options: Carbohydrates contain more energy that lipids because their bonds release more energy when broke
divide 360 in the ratio of 1:4
What would most likely happen if a person increased the amount of saturated fat in his or her diet
Shelby has ten $5 bills and thirteen $10 bills how much money does Shelby have in all
Which of the following groups of words is a sentence fragment? A. When we stopped by the garden. B. Stopping by the garden, we saw that the flowers were in bl