Alice 3.3: различия между версиями

Содержимое удалено Содержимое добавлено
Строка 46:
WholeNumber i = 0
DecimalNumber X = this.getDoubleFromUser("X")
Boolean Found = false
while (BOTH (NOT Found) and (i < Arr.Length)) is true
{
if (X == Arr[i]) is true then
{
this.alice say "X найден в позиции " + i
iFound = Arr.Lengthtrue
}
else
i = i + 1
}
if (iNOT == Arr.LengthFound) is true then
this.alice say "X не найден"
</source>