Given a vector Z
.
1) Write to the variable NonZerros
indices of non-zero elements.
2) Write the variable Count_NonZerros
number of non-zero elements.
Add only 2 lines to the program. You don't need to input or output anything. The vector Z
has already been created.
Запрещенные операторы:for;while;do;until;if;switch