Advertisement
Guest User

new

a guest
Jul 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. #include<iostream>
  2. #include<cmath>
  3. #include<fstream>
  4. using namespace std;
  5. int main()
  6. {
  7.     int x,i=1,sum=0;
  8.  
  9.     ofstream file;
  10.     file.open("sinx.dat");
  11.     while (i<=360)
  12.     {
  13.         i=i+5;
  14.         file<<i<<sin(M_PI*i/180)<<endl;
  15.     }
  16.     file.close();
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement