jesmet / arcane

4 stars 0 forks source link

Day 3 #2

Open jesmet opened 5 days ago

jesmet commented 5 days ago

day3

for loop

Prompt the user to input a number N. Use a for loop to print the multiplication table for N from 1 to 10. Format the output as: N x 1 = result N x 2 = result And so on, up to N x 10

Hashimjr commented 5 days ago

n=int(input("enter the number")) i=1 for i in range(1,11): r=n*i print(f"{n} x i={r}")

Farsana-ms-EC commented 5 days ago

n=int(input('Enter a number ')) for i in range(1,11): M=n*i Print(M)

FarisKRasheed commented 5 days ago

n=int(input("enter the number")) i=1 for i in range(1,11): r=n*i print(f"{n} x {i}={r}")