0

Pls how can I write a c++ program for base conversion containing the following description

Accept a base as an integer from keyboard. Declare an array that is big enough to accommodate 32-34 bit integer value. Incorporate the above code into your program to run. After the first four loop add another for loop to display the converted integer. Thank you very much am really grateful for your response

3rd Jan 2020, 12:19 PM
Princez Beauty
14 ответов
+ 2
Martin Taylor nice I learned something new today🙃🙂👍
4th Jan 2020, 2:53 AM
Arsenic
Arsenic - avatar
+ 1
Where is your attempt??
3rd Jan 2020, 12:24 PM
Arsenic
Arsenic - avatar
+ 1
Do you know how to convert base of a number mathematicaly ?
3rd Jan 2020, 12:26 PM
Arsenic
Arsenic - avatar
+ 1
Yes
3rd Jan 2020, 12:27 PM
Princez Beauty
+ 1
Then why don't you do the same in C++? Just try it, I am sure you will succeed
3rd Jan 2020, 12:28 PM
Arsenic
Arsenic - avatar
+ 1
Ok, if you want the code only then here you go:- https://code.sololearn.com/cWA0brqhbDO7/?ref=app
3rd Jan 2020, 12:31 PM
Arsenic
Arsenic - avatar
+ 1
Yes this code converts the base of any number from decimal to the required base. Just read the code for more information. Maybe it will help you
3rd Jan 2020, 12:37 PM
Arsenic
Arsenic - avatar
0
Don't know how to go about it
3rd Jan 2020, 12:25 PM
Princez Beauty
0
Like how will I write d code is the problem am not good at computer and I want to know because I need to pass it in my up coming exam pls show me the format
3rd Jan 2020, 12:29 PM
Princez Beauty
0
Pls show me the format then you can ask me questions to c if I get it plsss I really need to know it
3rd Jan 2020, 12:30 PM
Princez Beauty
0
Pls don't b offended is dat d correct answer to my question plss
3rd Jan 2020, 12:34 PM
Princez Beauty
0
I run d program with an input of 0 and it gives me an output containing 2,8... Is dat all
3rd Jan 2020, 12:35 PM
Princez Beauty