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

Match the scenarios with the economic concepts they illustrate.
i also need help with this question
What types of jobs did hitler have before coming fuhrer of nazi germany?
About what percent of arson fires are set by individuals under 18? less than one percent twenty percent fifty percent eighty percent criminology
May anyone HELP ME please
You are asked to design a horizontal curve with a 40-degree central angle (' = 40) for a two-lane road with 11-ft lanes. the design speed is 70 mi/h and superel
When prokaryotic cells copy their dna, replication begins at?
1. There are eight characters in The Mousetrap. Choose any two of them. For each of the two characters, state one clue that made the character a suspect. Then e
Dorothy works as a medicinal chemist in a pharmaceutical company. What could one of her assignments be?
Solve the inequality 16<32t