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

37 байт добавлено ,  3 года назад
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>