Thank you for your replies. My ultimate goal is to write a program to convert the base from decimal to any base between 2 to 36. Here, the input is a decimal value and base in which the number is to be converted and the output is the converted number. The input value may contain characters.
I have written a program to achieve this, but on running this on dev-c++ forums, my program hangs after inputting the number and the base values. I don't see any error in my code, kindly suggest changes:
printf("Enter the number to be converted");
printf("Enter the base between 2 and 36 to which the number is to be converted");
printf("Base %d representation of %d is",newbase,n);