|
zadach153.BAS |
|
{* Задача153 *}REM basic ' Составить программу вычисления произведения элементов двумерного массива, больших 10CLS
DEFDBL A-Z
INPUT "vvedite n"; n
INPUT "vvedite m"; m
Dim a(n, m)
p = 1
For i = 1 To n: For j = 1 To m
PRINT "vvedite a("; i; ","; j; ")"
INPUT a(i, j)
Next: Next
For i = 1 To n: For j = 1 To m
If a(i, j) > 10 Then p = p * a(i, j)
Next: Next
If p = 1 Then p = 0
For i = 1 To n: For j = 1 To m
PRINT a(i, j);
Next: PRINT: Next
PRINT "p ="; p
End
|