Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cmath>
- #include<fstream>
- using namespace std;
- int main()
- {
- int x,i=1,sum=0;
- ofstream file;
- file.open("sinx.dat");
- while (i<=360)
- {
- i=i+5;
- file<<i<<sin(M_PI*i/180)<<endl;
- }
- file.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement