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