PascalABC.NET 3.4.2, сборка 1979 (16.02.2019)
- begin
- var resultNumber := SeqRandomInteger(3, 1, 10).ToArray.Println.Product.Print;
- end.
Pascal
- var
- resultNumber, randomNumber, i: integer;
- begin
- resultNumber := 1;
- randomNumber := 1;
- for i := 1 to 3 do
- begin
- randomNumber := Random(11);
- while randomNumber = 0 do
- begin
- randomNumber := Random(11);
- end;
- Writeln(randomNumber);
- resultNumber := resultNumber * randomNumber;
- end;
- Writeln('Результат: ', resultNumber);
- end.