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 does Dunbar characterize the speaker in "We Wear the Mask"? Dunbar implies that the speaker and others put on a brave face while out in public. The speaker
Help help math please please
More than ______ percent of U.S. adults over the age of 65 have one or more chronic conditions.
solve using quadratic formula 3n^2-2n-5=0
rchaeologists collect information from __________ a. oral histories b. artifacts and ruins c personal interviews
A disputed paternity case! Hermione’s new baby has a blood type of O. Her blood type is B and Ron Weasley is A. Harry Potter (blood type AB) insists he is the c
−3 2/3=x−1 1/4 pls help
Which answer sounds like a universal theme you might find in a narrative poem?
8. Generalizing Who were the Federalists and what were their arguments in support of the proposed Constitution?
Solve the word problems below: When I woke up today morning, the temperature was 24 o C. Every two hours, it gets warmer by 1o C. Write an equation to represent