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 were Ancient Greek city- states different from modern U.S. states?AEach city-state had its own laws; U.S. states do notBEach Greek city-state had its own la
112 oz= how many pounds are in 112 ounces
Capital city of Fiji?
Vegetables are the best source for essential amino acids. a. True b. False
What is the the outer boundary of the cell of an animal called? a. Wall b. Gate c. Nucleus d. Membrane
which event led to the other three
If a university wants to maintain a 14:1 ratio between students and teachers, how many teachers would be needed to accommodate 896 students? a. 14 teachers b.
Is/are the most concentrated form of energy. Fast proteins carbohydrates
if two sides of a triangle are 10 units and 13 units,a possible third side for the could be?
the glycemic index predicts the way certain foods affect