Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cmath>
  4. #include <ctime>
  5. #include <cstdlib>
  6.  
  7. using namespace std;
  8.  
  9.  
  10. int main() {
  11.     ofstream fout("out.txt");
  12.     double res;
  13.     int i;
  14.     for ( i = 0; i < 1000000; i++)
  15.     {
  16.         res = sin(i)*cos(pow(i, 4.0)) + sqrt(i) / 6;
  17.         //cout << res;
  18.         fout << res;
  19.     }
  20.     //cin.get();
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement