Everyone help me. i need program with output of binary convert to decimal. Program goes like this: when the users enter binary then the answer is decimal. And this program use C++
Everyone help me. i need program with output of binary convert to decimal. Program goes like this: when the users enter binary then the answer is decimal. And this program use C++
#include <iostream> using namespace std; int binToDec(){ // http://www.codeguru.com/forum/showthread.php?t=372718 return decValue; } int main(){ int binValue; cout << "Input binary value" << endl; cin >> binValue; cout << endl << binValue.binToDec() << endl; return 0; }
Don't forget to give people a medal when they help you!
thankyou
You're welcome! :)
Join our real-time social learning platform and learn together with your friends!