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

what are the effects of global warming
WRITE EACH RATE AS UNIT RATE. 162 WATER BOTTLE IN 9 CASES=
what are three physical properties of aluminum foil
What features of colonial politics in 18th century America contributed to the development of popular democracy, and what kept political life from being more tru
How and where has oil, road development, mining, dams and agriculture contributed to local economic, political, and land use issues?
what is £42 increased by 10%
On a TI-84, how do you stop it from giving you simply a number for an answer when you put in a polynomial divided by another polynomial?
find the proportionality of y=7.25x
The cost of living last year went up 7%. Fortunately, Alice Swanson got a 7% raise in her salary from last year. This year she's earning $42,805. How much did s
1) fought at Lexington and Concord 2)a formal meeting called for a special purpose 3) complaints against British rule 4) formed to solve the problem of trade