Комментарии: Решаем задачи Абрамян на C. Array30 https://coolcode.ru/reshaem-zadachi-abramyan-na-c-array30/ Скриптописание и кодинг Mon, 05 Dec 2016 14:32:42 +0000 hourly 1 https://wordpress.org/?v=5.8.10 Автор: Maxim https://coolcode.ru/reshaem-zadachi-abramyan-na-c-array30/#comment-1832 Mon, 05 Dec 2016 14:32:42 +0000 http://coolcode.ru/?p=8985#comment-1832 C++
_________

const int array_size = 3;
int array[array_size] = { 10, 9, 8 };
int counter = 0;

for (int i = 1; i array[i])
{
cout << i — 1 << " ";
counter++;
}
}
cout << "\n" << counter << endl;

]]>