Last Updated: 29 Nov, 2016

Binary to decimal

Easy
Asked in companies
SamsungSnapdeal Ltd.

Problem statement

Given a binary number as an integer N, convert it into decimal and print.

Input format :
An integer N in the Binary Format
Output format :
Corresponding Decimal number (as integer)
Constraints :
0 <= N <= 10^9