From e15d56171709df560f4982b4851aa9aeb4c18c73 Mon Sep 17 00:00:00 2001 From: oltnd Date: Sat, 2 Nov 2024 17:12:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1.cpp | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 1.cpp diff --git a/1.cpp b/1.cpp new file mode 100644 index 0000000..fe287ad --- /dev/null +++ b/1.cpp @@ -0,0 +1,106 @@ +#include +#include +using namespace std; + + +void z1(){ + double R,r,h; + cout << "R = "; + cin >> R; + cout << "r = "; + cin >> r; + cout << "h = "; + cin >> h; + if (R <= 0 or r <= 0 or h <= 0) { + cout << "Нет решений"<>x; + cout<<"Введите a: "; + cin>>a; + if (abs(x)<1){ + if (x!=0){ + y=a*log(abs(x)); + cout<<"Результат: "<=1){ + if ((a-pow(x,2))<=0){ + cout<<"Под корнем не может быть отрицательных чисел"<>n; + if (n<=0){ + cout<<"цикла не будет"; + } + else{ + for (int i=0;i<10;i++) { + cout<