Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int toBinary(int value) {
- if (value == 0)
- return 0;
- else
- return (value % 2 + 10 * toBinary(value / 2));
- }
- /*int sum(LList L1, LList L2) {
- if (L1 == 0 || L2 == 0)
- return 0;
- return L1.value + L2.value + sum(L1.link, L2.link);
- }*/
- /*int main() {
- //cout << toBinary(69);
- system("pause");
- }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement