0

How can we write table of 5 in python code

24th Jun 2021, 3:25 PM
Aryan Shrivastava
Aryan Shrivastava - avatar
2 Answers
0
A simple code would be- for x in range (0,51,5): print(x) This uses a for loop with increment. Hope it helps!
24th Jun 2021, 4:24 PM
Code Wizard
0
# to print table of 5 with full expression: for n in range(1,11): print("5 x", n, "=", 5*n)
24th Jun 2021, 11:07 PM
visph
visph - avatar