Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 09 / task1.cpp
blob: 1763817ff18e20a97933a5aff57c4973537cf0ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
bool Exist_digit(unsigned int val, unsigned int digit)
{
        if (val == 0)
			return false;
		
        if (val % 10 == digit)
            return true;

        Exist_digit(val / 10, digit)
}