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

"In the diagram, m = 128° and m = 76°. What is mABC? A) 104 B) 116 C) 128 D) 102 E) 96"
the largest factor of 24 is
who established the first comittee of correspondence in Boston in 1772 and why?
"1. In the diagram, which multicell structure is diploid (2n)? A. gametophyte B. sporophyte C. gamete D. spore "
what five states have the largest spanish-speaking population
What are organ systems are made of
Why were community lands not recognized by U.S. lawyers?
What is the oblique asymptote of the function f(x) = the quantity of x squared plus x minus 2, all over x plus 1
"Judging by appearance, classify the figure in as many ways as possible. a.rectangle, square, quadrilateral, parallelogram, and rhombus b.rectangle, square, and
the mexican revolution resuilted in a body civi war which left over one millon people dead. following the revolution, important changes were made in the politca