First post, oh boy... So i finally got around to joining up. Now im checking out all that there is to do on the site. will actually update when i have time between classes
More Blogs
-
3
Tuesday Aug 02, 2005
so im here in california hanging out with Xtine and my girlfriend ult… -
2
Saturday Jul 02, 2005
you know what rocks??? when only one person shows up to your birthd… -
2
Thursday Jun 23, 2005
i <3 my girlfriend.... ultracreep -
1
Wednesday Jun 22, 2005
quote of the day: ...: "its not fair!" me: "whats not fair?" ...… -
4
Tuesday Jun 21, 2005
WOOO, its mah birthday...... no longer a teenager, and it feels great -
4
Monday Jun 20, 2005
things have been busy, and pretty much the same old stuff... work, s… -
2
Sunday Jun 12, 2005
this weekend has turned out very good. friday- played WoW most of… -
1
Thursday Jun 09, 2005
i almost forgot... birthday is in 12 days.... party in 8 party on 1… -
0
Thursday Jun 09, 2005
so, for some reason i've been having a lot of nightmares recently. p… -
6
Monday May 30, 2005
the MSI concert friday was fucking fantastic. the day started good, …
#include <iostream.h>
void binary(int);
void main(void) {
int number;
cout << "Please enter a positive integer: ";
cin >> number;
if (number < 0)
cout << "That is not a positive integer.\n";
else {
cout << number << " converted to binary is: ";
binary(number);
cout << endl;
}
}
void binary(int number) {
int remainder;
if(number <= 1) {
cout << number;
return;
}
remainder = number%2;
binary(number >> 1);
cout << remainder;
}