#include <iostream> #include <cmath> using namespace std;
void main() { int n,sum=0; float y,k=0; cin >> n; int *mass = new int[n]; for (int i = 0;i < n;++i) { cin >> mass[i]; } for (int i = 0;i < n;++i) { if (mass[i] >0 ) { k++; y=pow(mass[i],2); cout<<y; sum+=mas[i] } } system("pause"); }
2)#include <iostream> #include <cmath> using namespace std;
void main() { int s,p,r,day=0; cin >> s>>p>>r; float km=s; while(r>km) { km+=km*p/100; day++; } cout << " km = " << km << " day = " << day << endl; system ("pause"); }
nadezhdasvirina
14.10.2021
Var A,B,C:integer; Begin C:=365; Read(A,B); if A>1 then C:=C-31; if A=1 then C:=C-B; if A>2 then C:=C-28; if A=2 then C:=C-B; if A>3 then C:=C-31; if A=3 then C:=C-B; if A>4 then C:=C-30; if A=4 then C:=C-B; if A>5 then C:=C-31; if A=5 then C:=C-B; if A>6 then C:=C-30; if A=6 then C:=C-B; if A>7 then C:=C-31; if A=7 then C:=C-B; if A>8 then C:=C-31; if A=8 then C:=C-B; if A>9 then C:=C-30; if A=9 then C:=C-B; if A>10 then C:=C-31; if A=10 then C:=C-B; if A>11 then C:=C-30; if A=11 then C:=C-B; if A>12 then C:=C-31; if A=12 then C:=C-B; Write(C); End.
Ответить на вопрос
Поделитесь своими знаниями, ответьте на вопрос:
Як називається твердження, яке може бути істиним або хибним?А) Слідуванням;І) розгалуженням.Б) узагальненням; в) повторенням;
ответ: розгалуження .
Объяснение: