Skip to content

Instantly share code, notes, and snippets.

@Levik
Created March 6, 2011 11:19
Show Gist options
  • Select an option

  • Save Levik/857210 to your computer and use it in GitHub Desktop.

Select an option

Save Levik/857210 to your computer and use it in GitHub Desktop.
lab2
#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