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<