Выберите номера команды, при выполнении которых выделенный фрагмент текста попадает в буфер обмена: 1.открыть 2.копировать 3.удалить 4.вырезать 5.вставить 6.переместить 7.отменить 8.повторить 9.заменить 10.найти 11.сохранить
#include < iostream> #include < string> int main() { using namespace std; //1й пункт string s1 = "computer programming (often shortened to programming) is a process"; for (int i = 2; i < s1.size(); i = i + 3) cout < < s1[i]; cout < < endl; //2й пункт string s2 = "programming involves activities such as analysis, developing understanding"; for (int i = 1; i < s2.size(); i = i + 2) if (s2[i] ! = 'a' & & s2[i] ! = 'b') s2[i] = 'a'; else s2[i] = 'c'; cout < < s2 < < endl; return 0; }
samogon-mozhaisk
23.02.2023
Program yeah; const n=15; const m=15; var a: array [1..n,1..m] of integer; i,j,b,c,x,y: integer; beginrandomize; write('матрица: '); writeln; for i: =1 to n do begin for j: =1 to m do begina[i,j]: =random(100); write(a[i,j]: 3); end; writeln; end; c: =1; while c< 16 do beginfor i: =1 to n do begin for j: =1 to m do beginb: =a[1,c]; end; end; x: =x+b; c: =c+1; end; writeln('сумма первой строчки: ',x); c: =1; while c< 16 do beginfor i: =1 to n do begin for j: =1 to m do beginb: =a[15,c]; end; end; y: =y+b; c: =c+1; end; writeln('сумма последней строчки: ',y); x: =x+y; writeln('общая сумма: ',x); end.