Skip to content
Sign upLog in
← Back to Community

How do you make it do the 99 times tables?

Profile icon
MeesamS

I tried for var in range

x = 300
y = 200
p = 200

print(x)
print(y)
print(p)

print("Hello Class, Today we are going to learn our 99 times table!")

Answered by RYANTADIPARTHI [earned 5 cycles]
View Answer
Voters
Profile icon
MeesamS
Comments
hotnewtop
Profile icon
RYANTADIPARTHI

Solution

if you want to print the 99th table, then use a for loop. Try this.

for i in range(1, 11): print(i * 99)

that prints is 10 times. Like that.
That should work.

Profile icon
MeesamS

@RYANTADIPARTHI

Thanks alot. It worked

Profile icon
RYANTADIPARTHI

@MeesamS
np :)

Profile icon
MeesamS

Wow all of your's are correct

Profile icon
19ecal

To do times tables we can do

num=0 for i in range(13): #Loop 13 times print(num) #Output the value num+=99 #Add 99

We could also do:

for i in range(13): #Loop 13 times, adding 1 to i each time print(i*99) #Print i times 13

Both should print 99 times table up to 12x99
Hope this helps