From 758091b600c2cc076589e62fb40a2472fbe59f0b Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Thu, 14 Oct 2021 13:47:40 +0300 Subject: Rename 07. point_in_circle to 07. Point_in_circle --- Sem. 02/Solutions/07. Point_in_circle | 24 ++++++++++++++++++++++++ Sem. 02/Solutions/07. point_in_circle | 24 ------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) create mode 100644 Sem. 02/Solutions/07. Point_in_circle delete mode 100644 Sem. 02/Solutions/07. point_in_circle diff --git a/Sem. 02/Solutions/07. Point_in_circle b/Sem. 02/Solutions/07. Point_in_circle new file mode 100644 index 0000000..ef45c6e --- /dev/null +++ b/Sem. 02/Solutions/07. Point_in_circle @@ -0,0 +1,24 @@ +#include +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"; + } +} diff --git a/Sem. 02/Solutions/07. point_in_circle b/Sem. 02/Solutions/07. point_in_circle deleted file mode 100644 index ef45c6e..0000000 --- a/Sem. 02/Solutions/07. point_in_circle +++ /dev/null @@ -1,24 +0,0 @@ -#include -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"; - } -} -- cgit v1.3.1-23-gd82d