Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 05 / Solutions / task1_changedCondition.cpp
blob: fe35613f4e06243a94deb14d7e0447fb93347839 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
bool isNumberInArray(const int *arr, int size,int number)
{
	for (int i = 0; i < size; i++)
	{
		if (arr[i] == number)
			return true;
	}

	return false;
}