Логические выражения все, кроме В.
#include <iostream>
using namespace std;
int main(int argc, const char *argv[])
{
setlocale(LC_ALL,"Russian");
unsigned short int FROM = 20, TO = 32;
int s;
cout << "s = ";
cin >> s;
for (size_t i = FROM; i <= TO; i++) {
if (i % s == 0) {
cout << i << ' ';
}
}
return 0;
}
Dim b(4,2)
for i=1 to 4 step 2
for j=1 to 2
b(i,j)=int(RND*10-8)
print b(i,j);
next j
print
next i
kol=0
for i=1 to 4 step 2
for j=1 to 2
if b(i,j) mod 3=0 then
kol=kol+1
end if
next j
next i
print kol
Одномерный массив 1. Составьте программу ввода и вывода массива: 5, -2, 3, -6, 7, 9, -4, 8, 1, 2, 7, -3. 2. Составьте блок-схем
ТарасоваКсю
3)
const n=10;
var a:array [1..n] of integer; r,i:integer;
begin
r:=1;
for i:=1 to n do begin
a[i]:=r; inc(r,2); end;
for i:=1 to n do
write(a[i],' ');
end.