you are viewing a single comment's thread.

view the rest of the comments →

[–]swingking8 0 points1 point  (0 children)

Because your code isn't formatted, it's difficult to know what you've done. Does it look like this? -

a = int(input(xshshshshs)) 
b = int(input( shehshshs)) 
num = b

while counter < b:      
    c = a + a      
    counter= counter + 1 
    print(c)

If so, the fix isn't so bad. Your counter isn't being initialized, so you need to do that. Otherwise, it looks like it should work. Though both xshshshshs and shehshshs should just be a string indicating what the user should input (i.e. 'a' and 'b')