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
LP(Multi)
threadpool02
MovConstrAssign4
Pairs having sum equal to target
scuba
Anagram finder
TupleCPP
Generating π from 1,000 random numbers
Rrrrrrrr
Continuous Sub Set with given sum