Answers for "program to change binary to decimal"

0

program to change binary to decimal

#include <iostream>
using namespace std;
 
int main()
{
    char binaryNumber[] = "1001";
     
    cout << stoi(binaryNumber, 0, 2);
 
    return 0;
}
// This code is contributed by whysodarkbro
Posted by: Guest on March-11-2022

Code answers related to "program to change binary to decimal"

Browse Popular Code Answers by Language