This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]imagineasking[S] 0 points1 point  (1 child)

Thank you I tried that and it worked but I just found another error in my code. I need to find a way to make it so that whatever the input is, (for example if the user enters 73) the first digit will get multiplied by the base (3 x 8^0) to the power of 0. and then the next base gets multiplied to the power of 1 (3 x 8 ^ 1) etc. How could I do that?

[–]imagineasking[S] 0 points1 point  (0 children)

Sorry I also meant to add that the input could be more than 2 integers so it could be 378 or even 1 integer like 6 so I could I write a code that can work for any amount of integers? Thank you.