From cdd08ae770294e912e10ed190d09ab6834620deb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB?= <92202960+rur7@users.noreply.github.com> Date: Sat, 25 Dec 2021 11:35:54 +0300 Subject: [PATCH] Add files via upload --- "2_\320\233\320\260\320\261\320\260_1,2.cpp" | 209 ++++++++++++++++++ "4_\320\233\320\260\320\261\320\260_1.cpp" | 119 ++++++++++ "4_\320\233\320\260\320\261\320\260_2.cpp" | 76 +++++++ "4_\320\233\320\260\320\261\320\260_3.cpp" | 83 +++++++ ...\210\320\270\320\261\320\272\320\260).cpp" | 52 +++++ 5 files changed, 539 insertions(+) create mode 100644 "2_\320\233\320\260\320\261\320\260_1,2.cpp" create mode 100644 "4_\320\233\320\260\320\261\320\260_1.cpp" create mode 100644 "4_\320\233\320\260\320\261\320\260_2.cpp" create mode 100644 "4_\320\233\320\260\320\261\320\260_3.cpp" create mode 100644 "4_\320\233\320\260\320\261\320\260_4(\320\276\321\210\320\270\320\261\320\272\320\260).cpp" diff --git "a/2_\320\233\320\260\320\261\320\260_1,2.cpp" "b/2_\320\233\320\260\320\261\320\260_1,2.cpp" new file mode 100644 index 0000000..c2d347e --- /dev/null +++ "b/2_\320\233\320\260\320\261\320\260_1,2.cpp" @@ -0,0 +1,209 @@ +#include +#include + +using namespace std; + +int main() +{ + int x=1; + int y=5; + int z=3; + double a=pow((pow(x,2)+pow(y,2)+pow(z,2)),1.0/2.0); + cout <<"Длинна вектора = " << a <> nom) + { + if (nom==1) + { + double X1,Y1,Z1,C1,V1; + cout <<"Трапеция " < +#include + +using namespace std; + +int main() +{ + int a,b,c,d,e,f; + double x,y; + chislo: + cout <<"Vvedite chisla x,y"<> x) + { + cout <<"y: "; + if(cin >> y) + { + goto q1; + } + else + { + goto eror; + } + } + else + { + goto eror; + } + q1: + cout <<"Vyberete nomer operaczii" <> a) + { + if (a==1) + { + cout <> f) + { + if (f==1) + { + goto q1; + } + else + { + goto kon; + } + } + else + { + goto eror; + } + } + if (a==2) + { + cout < +#include + +using namespace std; + + +double S,P,I,m,n,S1; +int mes,i; +void func1 () +{ + S1=S1*pow(1+I/(m/12),m/12*n); + S1=round(S1*100)/100; +} +void func2 () +{ + for (i=1;i<=n;i++) + { + S1=S1+S1*I; + } + S1=round(S1*100)/100; +} + +int main() +{ +I=0.15; +cout <<"Введите сумму вклада : "; +if (cin>>S1) +{ + cout <<"Выберете период начисления процентного вознаграждения 15 %: "<>mes) + { + cout <<"Введите срок вклада (в годах) : "; + if (cin>>n) + { + if (mes==1) + { + func2(); + cout < +#include + +using namespace std; + +int main() +{ + double n,k,y; + n=1; + int v; + cout <<"Выберете операцию:"<>v) + { + if (v==1) + { + goto sum; + } + if (v==2) + { + goto pro; + } + else + { + cout <<"Такой операции не существует"; + return 0; + } + + } + else + { + goto eror; + } + + + + sum: + cout <>k) + { + while (k>=1) + { + k=k-1; + y=y+(2/((2*n+1)*(2*n+3))); + n=n+1; + } + cout <<"Сумма числового ряда = "<>k) + { + y=1; + while (k>=1) + { + k=k-1; + y=y*(pow(-1,n-1)+n); + n=n+1; + } + cout <<"Произведение числового ряда = "< +#include + +using namespace std; + +int main() +{ + int x,y[0],s,s1,k,n,m,q,w,x1; + cout <<"Введите число: "; + if (cin>>x) + { + s=0; + x1=x; + while (x) + { + x=x/10; + s++; + } + k=0; + n=10; + m=1; + s1=0; + q=0; + w=0; + while (s!=s1) + { + y[k]=x1%n/m; + s1++; + cout <