106 Raspunsuri multiple
Se consideră algoritmul algo(n, d), unde n este un număr natural pozitiv (), iar d este o cifră ().
Algoritm 1
Algorithm algo(n, d)
count ← 0; total ← 0
While n > 0 execute
r ← n MOD 10
If r = d then count ← count + 1 EndIf
total ← total + 1
n ← n DIV 10
EndWhile
Return count > total DIV 2
EndAlgorithmPrecizați care dintre următoarele afirmații sunt adevărate:
40 / 60