Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 09 / task3.cpp
blob: baf8da0666a3d4eba867b5002ea4d0f30c78af66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <iostream>

void reversedNumber(int n)
{
	if(n == 0)
		return;
	
	std::cout << n % 10;
    return reversedNumber(n / 10);
}