Base conversion problem!
I need to code an algorithm that will conver any number in any base 2 thru 9 and output the number to its base 10 equivalent....
i havent been able to come up with a way to analyze each digit of the number that the user inputs, and manipulate and verify it (my professor told me that i can use division or mod to do this, and i've tried and tried, but nothing makes sense!).. i cant figure this out.... i have an idea of how to convert numbers back and forth in their baes but i'm stuck here! Could someone please please help me?!?! i am new to programming and having a rough time, there are no tutors at my school..Thank you!