Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- #include <cmath>
- #include <math.h>
- using namespace std;
- int main()
- { ``````````````````````````````
- int a,b `
- cout<<"podaj wsp a="<<endl; `
- cin>>a; `
- cout<<"podaj wsp b="<<endl; `
- cin>>b; `
- cout<<"PODAJ PUNKT P=("<<x<<","<<y<<")";`
- w=3*x+4*y-4;
- cout<<endl;
- if(w==0)
- {
- cout<<"Punkt lezy na prostej"<<endl;
- }
- else
- {
- cout<<"Punkt nie lezy na prostej"<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement