Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Dec to Bin
#include <bits/stdc++.h> using namespace std; int main() { int n = 4; vector <int> v; while(n!=0) { int r = n % 2; v.push_back(r); n = n / 2; } reverse(v.begin(),v.end()); for(int i=0;i<v.size();i++) cout<<v.at(i); }
run
|
edit
|
history
|
help
0
single_digit
First and last Occurence of an Element
4C test
Median of row wise sorted matrix
Find value in sorted matrix
Filtering a vector attribute with template UnaryPredicate
დიოფანტეს განტოლება
A+B ორობით სისტემაში
Stream9
div