Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Problem: binary
#include<iostream> using namespace std; int main() { int num,binary[35]; int i; cout << "Enter a number" << endl ; cin >> num; while(num > 0) { binary[i]=num%2; i++; num = num/2; } cout<<"Binary form is " << endl; for(int j=i-1; j>=0; j--) { cout<<binary[j]; } }
run
|
edit
|
history
|
help
0
Test
find-missing-number-arithmetic-progression
ThreadPool
OTHER - Two robots
Rzutka gra 2
DailyExchRate
341 30 - B
samp error
XD
Tree