Raven 3.4 Problemskega naboja C++
Задание 1
Dan je array s števili
cppint arr[] = {1, -2, -3, 4, -5, 6};
Preštejte število negativnih števil v tem arrayu.
Задание 2
Dano je neko celo število:
cppint num = 1357;
Preverite, ali so vse številke tega števila lihe.
Задание 3
Dano je neko število:
cppint num = 12345;
Pridobite array števk tega števila:
cppint arr[] = {1, 2, 3, 4, 5};
Задание 4
Dan sta dva arraya:
cppint arr1[] = {1, 2, 3};
int arr2[] = {4, 5, 6};
Združite ta arraya v enega:
cppint arr[] = {1, 2, 3, 4, 5, 6};