#include #include #include using namespace std; int main() { srand (time(NULL)); int a[10],k = 0; for (int i = 0; i<10; i++)<br> { do { a[i] = rand()%20-10; } while (a[i]==0); cout <<a[i] <<" ";<br> } cout <<endl;<br> for (int i = 0; i<9; i++)<br> if ((a[i]>0 && a[i+1]<0) || (a[i]<0 && a[i+1]>0)) ++k; cout <<"Kol-vo: " <<k <<endl;<br> return 0; }