- 1
How can we write a multiplication table in reverse order in python
12 Respostas
0
I'd run a reverse loop from 10 to 1 using ranges and format an output string like "A times X is Y"
+ 1
You could try coding one normally first and then figure out how to get the new desired output from there. If you can do the first one you can do it in reverse.
+ 1
Post your code
0
Yeah I just tried print the table it can work but in reverse order it can't print
0
I=int(input("enter the, value:")
Fox x.reverse in range(1,11):
Print(I,'*',X,'=',I*X)
0
It's small x
0
Is this what you're wanting
for x in range(10, 0, -1):
print(i, '*',x,'=', i*x)
0
Tq very much
0
##This code reverse the table Try it
num=int(input("Enter Number - "))
for i in range(10,0,-1):
print(f"{num}x{i}={num*i}")
0
num = int(input("Enter a Number "))
for i in range(10, 0, -1):
print(num, ' * ',i,'=', i* num)
0
num = int(input("Enter a Number "))
for i in range(10, 0, -1):
print(num, '*',i,'=', i*num)
0
try this may be its help you
a = int(input("Enter The Number\n"))
for i in range(10,0,-1):
print(f"{a} x {i} = {a*i}")