#include#include using namespace std;int main(){ int z[11], n5=0, n3=0, n=10; for(n; n>=0; n--){ z[n] = rand() % 30 - 15; if(z[n] % 3 == 0){ n3++; } if (z[n] % 5 == 0){ n5++; } cout << z[n] << endl; } cout << " kratnyh 5 " << n5 << endl; cout << " kratnyh 3 " << n3 << endl;}