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 United States has a __________ economy.
What economic and social factors in the United States led to differing ideas about slavery in the North and the South?
Explain why the formula for finding the surface area of a rectangular prism is helpful.
residence halls owned by the college or university are also known as
Why is it dangerous for people in the balcony of an auditorium to stamp their feet in a steady rhythm?
Which statement best describes Frederik W. de Klerk? He was sent to prison on various charges for protesting South Africa’s policies of apartheid. He was the p
A scientist investigates a new substance and finds that at 35° C, 146.2 grams will dissolve in 200.0 grams of water. Which similar experiment could be used to s
What would be the best way to improved my math?
PLEASE HELP WILL REWARD BRAINLIEST
On april 22, 1970, the first ___________ was held, designed to educate students and others about the need to preserve natural resources and unite environmental