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

Simplify 2(x+3)-5(x-1)
factorise fully 77x-33x^2
PLZ HELP ITS DUE TODAY!!!!!
Which quality describes the speaker in this excerpt from Letters from a Cat by Helen Hunt Jackson?
which factor contributed to the rise of the Akkadian Empire?
there is more to come CLICK HEREEEEEEEEE
5. According to the table, Approximate Coefficients of Friction, which surface would offer the greatest traction for a rubber tire?(1) dry concrete (2) wet conc
PLEASE HELP WILL GIVE BRAINLIEST AND 5.0 RATING
Which sentence from the paragraph helps you understand the meaning of "interest"? A If a Roman managed to save up some money, he could make much more money by l
5. Monday night it was -2.3°C. If the temperature dropped 2.3°C overnight, what was the temperature Tuesday morning?