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

Show me how to do 0.2268÷0.84
What is the Preamble?(site 1)
Vinnie (our friend in the video) had a lot of credit cards, and he did have fun with them! Then he nearly went broke. What was the main thing Vinnie did wrong?
The sum of a certain number and a second number is -42. The first number minus the second number is 52. find the numbers
In two or more complete sentences, describe the transformation(s) that take place on the parent function, f(x) = log(x), to achieve the graph of g(x) = log(-3x+
What is the function of the centrioles
a student spends 40 minutes a day studying how many days per year does the student study?
please help on this one
Who has the power to settle disputes between different states
Can someone please help me with this Question On the Great Gatsby? In the Great Gatsby what rhetorical devices does the author use to develop Nick’s attitude to