Created
March 6, 2011 11:19
-
-
Save Levik/857210 to your computer and use it in GitHub Desktop.
lab2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| #include<cmath> | |
| #include<stdio.h> | |
| #include<conio.h> | |
| using namespace std; | |
| void main() | |
| { | |
| double x,y; | |
| cout<<"Enter x,y: "; | |
| cin>>x>>y; | |
| if (4>pow(x,2)+pow(y,2)&&1>pow(x-1,2)+pow(y,2)&&1>pow(x+1,2)+pow(y,2)) | |
| cout<<"tochka v oblasti"; | |
| else | |
| cout<<"tochka ne v oblasti"; | |
| getch(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment