Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Decimal to Binary
#include <iostream> using namespace std; int main() { int a[10], n, i; cin>>n; for(i=0; n>0; i++) { a[i]=n%2; n= n/2; } for(i=i-1 ;i>=0 ;i--) { cout<<a[i]; } }
run
|
edit
|
history
|
help
0
BinTreeInsert
new
Minimum Vertices to Traverse Directed Graph
CPP - Arrays - Ex.2
good triplet
ddd
weak_ptr and Circle_reference
perimetar na triagolnik
Reverse factorial
Полиморфизм. Простейшее ДЕМО.