Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 04 / Solutions_10-14 / task10.cpp
blob: e9e83b9d5eabaacdb57b5a09f01676fe42fa9127 (plain) (blame)
1
2
3
4
5
6
7
8
9
int askUser(int from, int to)
{
	int number;
	while (std::cin >> number)
	{
		if (number >= from && number <= to)
			return number;
	}
}