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