Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include "stdafx.h"
  2. #define _USE_MATH_DEFINES
  3. #include <iostream>
  4. #include <time.h>
  5. #include <cmath>
  6. #include <stdio.h>
  7. using namespace std;
  8.  
  9.  
  10. int main() {
  11.  
  12. int i;
  13. const int n=15;
  14.  
  15. double arr[n];
  16.  
  17. i = 0;
  18. for (; i <= n; i++) {
  19. arr[i] = rand();
  20. cout << arr[i] << "\n ";
  21. }
  22.  
  23. system(" pause");
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement