fork download
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. using namespace std;
  5.  
  6. int main() {
  7. int Arseniy[5];
  8. srand (time(NULL));
  9. for(int i=0;i<=4;i++){
  10. Arseniy[i]=8+rand()%15;
  11. cout<<Arseniy[i]*Arseniy[i]<<endl;
  12. }
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 4328KB
stdin
Standard input is empty
stdout
169
121
169
441
225