pascalabcnet/TestSamples/KuMir_Samples/array.alg
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

37 lines
534 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

алг first7
нач
цел таб arr[1:10,1:10]
цел i,j
нц для i от 1 до 10
нц для j от 1 до 10
arr[i,j]:=i+j
кц
кц
нц для i от 1 до 10
нц для j от 1 до 10
вывод arr[i,j], " "
если j = 10 то
вывод НС
все
кц
кц
кон
алг first8
нач
цел таб arr[1:10,1:10]
цел i,j
нц для i от 1 до 10
нц для j от 1 до 10
arr[i,j]:=i+j
кц
кц
нц для i от 1 до 10
нц для j от 1 до 10
вывод arr[i,j], " "
если j = 10 то
вывод НС
все
кц
кц
кон