Computer Science, asked by jiyagodhwani101, 2 months ago

1) Write a Python program to print the multiplication table of 4.
Please help me with this. I will mark as brainliest​

Answers

Answered by anindyaadhikari13
8

Answer:

This is the required Python program for the question.

print("Here comes the table of 4.")

for i in range(1,11):

print(f"4 x {i} =",4*i)

Logic:

  • Iterate a loop in the range 1 to 10.
  • Multiply the value of the loop variable with 4.
  • Display the product with a new line.

See the attachment for output.

•••♪

Attachments:
Answered by BrainlyProgrammer
7

Answer:

#python program to print multiplication table of 4

for i in range(1,11):

print(f"{i} × 4={i*4}")

Explanation:

  • i loop runs from 1 to 10
  • then 4 is multiplied with I and printed
Attachments:
Similar questions