#include <iostream>
using namespace std;
int main() {
int n,sum=0,o;
cout << "Введите n: ";
cin >> n;
int a[n];
for (int i=0;i<n;i++) {
cin >> a[i];
o=i;
}
for (int i=1;i<=o;i++){
if (i%2==1){
sum+=a[i];
}
}
cout << sum;
}
Да 4)А......Там сложновато.....
Б- прав Боря так как в первом предложении 24 буквы а каждая буква содержит 8 бит информации из этого вытекает то что 1 предложение весит 24*8=192 бита
Program maxx;
var ocenka,sdal,nesdal,k,i:integer;
begin
writeln('введите кол-во оценок');
readln(k);
sdal:=0;
nesdal:=0;
for i:=1 to k do
begin
readln(ocenka);
if ocenka>2
then sdal:=sdal+1;
else nesdal:=nesdal+1;
end;
writeln(sdal);
writeln(nesdal);
<span>end.</span>