Se dau algoritmii problema(n) și calcul(a, b), unde n, a, b sunt numere naturale (0 ≤ n, a, b ≤ 9).
Algorithm problema(n):
rezultat ← 0
For k ← 0, n execute
For p ← 0, n execute
For j ← 0, n execute
If p MOD 2 = 0 then
rezultat ← rezultat + 1
EndIf
EndFor
EndFor
EndFor
Return rezultat
EndAlgorithm
Algorithm calcul(a, b):
t ← 0
For cifra ← a, b execute
t ← t + problema(cifra)
EndFor
Write t
EndAlgorithmCare din următoarele afirmații sunt adevărate?
Alegeți toate variantele corecte.