Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- main()
- {
- cout<<"Program do zamiany liczby w systemie dziesietnym na liczbe w systemie binarnym"<<endl<<endl;
- cout<<"Podaj liczbe w systemie dziesietnym"<<endl<<endl;
- int liczba;
- int dzielnik;
- while(1)
- {
- cin>>liczba;
- do
- {cout<<liczba%2;
- liczba=liczba/2;
- }
- while (liczba>0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement