Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 02 / Solutions / 07. Point_in_circle.cpp
blob: ef45c6ea45d8e2dd84b4e85062298836cab55726 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>
using namespace std;

int main()
{
	int x;
	int y;
	int radius;

	cin >> x >> y >> radius;

	if (x * x + y * y < radius * radius)
	{
		cout << "In the circle";
	}
	else if (x * x + y * y == radius * radius)
	{
		cout << "On the circle";
	}
	else
	{
		cout << "Out of the circle";
	}
}