{ int massiv[1000],i; int sum ; double pr1=1, randomize(); for (int i = 0; i < 1000; i++) //Заполнение массива { massiv[i] = -5 + rand() % 56; printf (" %d;", massiv[i]);} //Выводятся все элементы массива for (int i =1000-1; i>0; i--) { if (massiv[i]>=0) { pr1=massiv[i]*pr1; sum *= massiv[i]; } else break; } while (massiv[i]!=0); printf ("Result: %.0lf ", pr1); getchar(); getchar(); return 0; Where is the while statement, I can't write the body of the loop correctly. I write the sum, displays the wrong data (I work in Turbo C ++).