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 people of the Indus Valley may have traded with other ancient people. What two groups of people did they probably trade with? A) Phoenicians and Assyrians B
What’s the purpose ?
1. Why was it important for Squealer to teach the sheep the phrase "Four legs good, two legs better" before revealing that the pigs could walk upright? [RL.9.3
The lateral kidney position allows approach to the retroperitoneal area of the flank. to render the kidney region readily accessible, the ______ is raised, and
What would help you decide if the price of a soda has increased or decreased? A) GDP B) Choice C) CPI D) Scarcity​
Find three consecutive integers such that their sum is 40 more that tiwce the middle integer.
If a sprinkler rotated 90˚, paused and then rotated another 90˚, how many degrees did it rotate altogether
Solve this 4 ∙ 7 1/2 ∙ 1 3/5
¿Es cierto que 8/12 2/4 = 1 1/6?
what would happen if congress did not pass the fugitive slave law?​