Program to convert a decimal number into its corresponding octal binary hexadecimal number | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Program to convert a decimal number into its corresponding octal binary hexadecimal number

14th May 2017, 4:56 AM
Tehreem
2 Answers
+ 17
Don't copy! but learn from this code: https://code.sololearn.com/cW3O7q0ULqYs/?ref=app
14th May 2017, 5:13 AM
Dev
Dev - avatar
0
two variants using c printf and C++ ostream functionality. if you use the corresponding sprintf or stringstream you can assign the output to a variable. https://code.sololearn.com/cvnT36tvdWyw/?ref=app
14th May 2017, 6:50 AM
Volker Milbrandt
Volker Milbrandt - avatar