Public static void someaction() { int number = 0; int sum = 0; int num = int.parse(console.; while (num ! = 0) { if (num % 5 == 0 & & num % 7 ! = 0) { sum += num; number++; } num = int.parse(console.; } console.writeline("количество требуемых чисел: " + number); console.writeline("их сумма: " + sum); }
len4ik1986
21.04.2022
Вроде здесь уже решал такое : ) //pascal var n, a, b, c: integer; begin n : = 1; repeat repeat writeln(' ведите стороны a,b,c ', n, ' - треугольника'); readln(a, b, c); until ((a > 0) and (b > 0) and (c > 0)) and ((a + b) > = c); writeln('периметр равен ',a + b + c); n : = n + 1; until n > 25; end.