From 7300b6f60f1842faf66d323ee30c57d3a7f85c65 Mon Sep 17 00:00:00 2001 From: Misha Date: Tue, 30 Sep 2025 17:23:01 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20ta?= =?UTF-8?q?sk5.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task5.cpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 task5.cpp diff --git a/task5.cpp b/task5.cpp deleted file mode 100644 index ed74cd1..0000000 --- a/task5.cpp +++ /dev/null @@ -1,35 +0,0 @@ -#include -using namespace std; - -int main() { - double a; - double b; - double c; - double x; - double y; - - cout << "Enter the edges of the brick a, b, c: "; - cin >> a >> b >> c; - cout << "Enter the hole dimensions x, y: "; - cin >> x >> y; - - double min1 = a, min2 = b; - - if (c < min1) { - min2 = min1; - min1 = c; - } - else if (c < min2) { - min2 = c; - } - - if ((min1 <= x && min2 <= y) || (min1 <= y && min2 <= x)) { - cout << "The brick will pass through the opening." << endl; - } - else { - cout << "The brick won't fit through the opening.." << endl; - } - - return 0; - -}