Още един въпрос по условието на задача от домапното:
зад.6:
"Write a program that reads two integer numbers N and K and an array of N elements from the console. Find in the array those K elements that have maximal sum"
В учебника, в условието е уточнено, че К са поредни елементи.
И тук ли е така?
зад.6:
"Write a program that reads two integer numbers N and K and an array of N elements from the console. Find in the array those K elements that have maximal sum"
В учебника, в условието е уточнено, че К са поредни елементи.
И тук ли е така?