- 1

How can we write a multiplication table in reverse order in python

14th Apr 2020, 6:20 AM
neehar surya
neehar surya - avatar
12 Antworten
0
I'd run a reverse loop from 10 to 1 using ranges and format an output string like "A times X is Y"
14th Apr 2020, 7:06 PM
Hiba al-Sayf
Hiba al-Sayf - avatar
+ 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.
14th Apr 2020, 6:28 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Post your code
14th Apr 2020, 6:34 AM
ChaoticDawg
ChaoticDawg - avatar
0
Yeah I just tried print the table it can work but in reverse order it can't print
14th Apr 2020, 6:34 AM
neehar surya
neehar surya - avatar
0
I=int(input("enter the, value:") Fox x.reverse in range(1,11): Print(I,'*',X,'=',I*X)
14th Apr 2020, 8:06 AM
neehar surya
neehar surya - avatar
0
It's small x
14th Apr 2020, 8:06 AM
neehar surya
neehar surya - avatar
0
Is this what you're wanting for x in range(10, 0, -1): print(i, '*',x,'=', i*x)
14th Apr 2020, 8:39 AM
ChaoticDawg
ChaoticDawg - avatar
0
Tq very much
14th Apr 2020, 9:12 AM
neehar surya
neehar surya - avatar
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}")
18th Aug 2021, 6:46 PM
Sÿeđ Tähä
Sÿeđ Tähä - avatar
0
num = int(input("Enter a Number ")) for i in range(10, 0, -1): print(num, ' * ',i,'=', i* num)
13th Nov 2021, 2:14 PM
sarada prasad behera
0
num = int(input("Enter a Number ")) for i in range(10, 0, -1): print(num, '*',i,'=', i*num)
13th Nov 2021, 2:14 PM
sarada prasad behera
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}")
30th Jun 2022, 9:51 AM
Ahmad Naseer