Implement a program to convert a binary number to decimal.
MediumProblem Statement
Implement a program to convert a binary number to decimal.
Sample Input
int binary = 1011;
Sample Output
Decimal = 11
Limits
Time: 2s · Memory: 256 MB
Implement a program to convert a binary number to decimal.
int binary = 1011;
Decimal = 11
Time: 2s · Memory: 256 MB