Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. #define pi=3.14
  4. using namespace std;
  5. void main()
  6. {float x,y,h,a,b;
  7. cout<<"\nVvedite konec otreska a "; cin>>a;
  8. cout<<"\nVvedite konec otreska b "; cin>>b;
  9. cout<<"\nVvedite shag "; cin>>h;
  10. for (x=a;x=b;x+=h)
  11. {y=sin(x)-cos(x);
  12. cout<<"x= "<<x<<"\ty= "<<y<<endl;
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement