Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- #define pi=3.14
- using namespace std;
- void main()
- {float x,y,h,a,b;
- cout<<"\nVvedite konec otreska a "; cin>>a;
- cout<<"\nVvedite konec otreska b "; cin>>b;
- cout<<"\nVvedite shag "; cin>>h;
- for (x=a;x=b;x+=h)
- {y=sin(x)-cos(x);
- cout<<"x= "<<x<<"\ty= "<<y<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement