Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <iostream>
- using namespace std;
- void binario(int decimale)
- {
- if(decimale>1)
- {
- int quoziente=decimale/2;
- binario(quoziente);
- }
- cout<<decimale%2;
- }
- int main()
- {
- int decimale = 10;
- binario(decimale);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement