You are viewing a single comment's thread. Return to all comments →
For those using C as programming language,
int main(){ int n; scanf("%d",&n);
int count = 0; while (n) { n = (n & (n << 1)); count++; } printf ("%d\n", count); return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Day 10: Binary Numbers
You are viewing a single comment's thread. Return to all comments →
For those using C as programming language,
int main(){ int n; scanf("%d",&n);
}