Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
binary
#include <iostream> using namespace std; void binary(int d) { int rem; if (d <= 1) { cout << d; return; } rem = d % 2; binary(d / 2); cout<<rem; } int main() { int a; do { cout<<"Enter a positive number : "<<endl; cin>>a; } while (a<0); cout<<"Binary is : "; binary(a); cout<<endl; system("pause"); }
run
|
edit
|
history
|
help
0
Einstein's Physics
StrStrPbrk
Days in month database using unordered_map
Travel Buddy
dijkstra's algo
next permutation leetcode
Handling new types without using RTTI
Programa 3 (corregido)
read_write_lock_acc
fb_series