Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x;
- int y;
- int x1 = 0;
- int y1 = 0;
- int r = 2;
- cout << "podaj wspolrzedne punktu p(x,y): ";
- cin >> x >> y;
- if(x<0 && y<0){
- cout << "Punkt P nalezy do II cwiartki"<<endl;
- }
- else cout <<"Punkt P nalezy do I cwiartki"<<endl;
- if(((x1-x)*(x1-x)+(y1-y)*(y1-y))<=r){
- cout << "Punkt P zawiera sie w okregu o srodku S(0,0)";
- }
- else cout << "Punkt P nie nalezy do okregu o srodku S(0,0)";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement