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 three factors that could contribute to a source not being credible?
Given the inequalities y > 5x-8 and y >3x+4, find the point that satisfies neither inequalities
A transformer has a primary coil with 600 turns and a secondary coil with 300 turns. If the output voltage is 320 volts, what is the input voltage?A. 8 volts
One-half of a number is -12. Find the solution ???
Given the inequalities y > 5x-8 and y >3x+4, find the point that satisfies one inequalities but not them all
I = {1, 2} List all possible subsets of the given set.
distribute (x+1)(x-2)
distribute (x+1)(x-2)
how do I solve x+2y=8
In Romeo and Juliet act 2, which character serves as a messenger