Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3. #include <cmath>
  4. #include <math.h>
  5. using namespace std;
  6. int main()
  7. { ``````````````````````````````
  8. int a,b `
  9. cout<<"podaj wsp a="<<endl; `
  10. cin>>a; `
  11. cout<<"podaj wsp b="<<endl; `
  12. cin>>b; `
  13. cout<<"PODAJ PUNKT P=("<<x<<","<<y<<")";`
  14. w=3*x+4*y-4;
  15. cout<<endl;
  16. if(w==0)
  17. {
  18. cout<<"Punkt lezy na prostej"<<endl;
  19. }
  20. else
  21. {
  22. cout<<"Punkt nie lezy na prostej"<<endl;
  23. }
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement