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

HOW TO FIND THE MISSING NUMERATOR IN ANY FRACTIONS LIKE 4/8=  ?/4
If the angles of a triangle are in ratio 2:3:7 find the measure of all the angles of the triangle
How do you say I was born in the Philippines in Spanish
The discovery of gold in Transvaal contributed to the start of _____?the Anglo-Boer WarWorld War IIWorld War Ithe Peloponnesian War
the length of a rectangle is 3 feet less than twice the width of the rectangle. if the perimeter of the rectangle is 324 feet, find the width and the length?
Predict what happens when zinc is added to water
Use the order of operations and the digits 2,4,6 and 8 to create an expression with a value of 2
What is 60 divided by 100 and why? ( I got 0.6 but I'm not sure ) plz hurry
what is 20% of $45.00?
What is 38/50 as a decimal... and what is 28/50 as a decimal? PLEASE HELP ME !!!! i hate struggling with homework!