daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main()
  2. {
  3.     int n=0,i=0;
  4.     char binary[33];
  5.     gets(binary);
  6.     for (i = 0; i < 33, binary[i] != ''; i++)
  7.         n=n*2+binary[i]-'0';
  8.     printf("%d",n);
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top