include iostream include math using namespace std int main double arra

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#include <iostream>
#include <math.h>
using namespace std;
int main() {
double array[99];
for (int x = 0; x <= 99; ++x) {
array[x] = cos((x + 1) / 15);
}
for (int x = 0; x <= 99; ++x) {
cout << "array[" << x << "] - " << array[x] << endl;
}
return 0;
}