Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 04 / Solutions_10-14 / task11_recursive.cpp
blob: 1b9a3e39cb219c1fc8e5b3b4e8176d28e838bce2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
/*
NOTE!
Current Solution uses recursion, which we still have NOT taken/discussed.
*/

void toBinary(unsigned int num)
{
	if (num > 1) {
		toBinary(num / 2);
	}
	std::cout << num % 2;
}