Будут вопросы - задавайте. type a = array[0..999] of integer; var b, num: a; var n, k: integer; procedure simplenumber(b: a); begin for var i : = 0 to n-1 do begin for var j : = 2 to 9 do begin if b[i] mod num[j] < > 0 then k += 1; end; if k = 8 then begin write('есть простое число'); break; end else if (k < > 8) and (i = n-1) then write('нет простых чисел'); k : = 0; end; end; begin for var i : = 2 to 9 do begin num[i] : = i; end; read(n); for var i : = 0 to n-1 do read(b[i]); simplenumber(b); end.
maksim1lssah575
23.11.2021
#include < iostream> using namespace std; int main() { int a, b, c; cout < < "введите 3 целых числа: \n"; cin > > a > > b > > c; cout < < a < < "+" < < b < < "+" < < c < < "=" < < a+b+c < < "\n"; cout < < a < < "*" < < b < < "*" < < c < < "=" < < a*b*c < < "\n"; cout < < "("< < a< < "+"< < b< < "+"< < c< < ")/3="< < (a+b+c)/3.0< < "\n"; return 0; } пример: введите 3 целых числа: 5 7 85+7+8=20 5*7*8=280 (5+7+8)/3=6.66667