• Помогите найти ошибку
    дано 3 цифры распечатать все двухзначные числа
    begin
    program: adf;
    begin
    var a,b,c :=in tege;
    begin
    writeln ('write');
    read (a,b,c);
    writeln (a,b);
    writeln (b,a);
    writeln (a,c);
    writeln (c,a);
    writeln (b,c);
    writeln (c,b);
    end

Ответы 5

  • program qwe;var a, b, c : LongInt;beginread (a,b,c);if c > 9 and c < 99 then write(a,' ')else if c > 9 and c < 99 then write (b,' ')else if c > 9 and c < 99 then write (c,' ')elseif a > 99 and a < 999 then write (a, ' ');if b > 99 and b < 999 then write (b, ' ');if c > 99 and c < 999 then write (c, ' ');end.
    • Автор:

      saulw4qk
    • 5 лет назад
    • 0
  • я хз почему, но там типы не подходят, хотя написано все правильно
    • Автор:

      haley35
    • 5 лет назад
    • 0
  • Вот теперь всё работает, сперва выводит двухзначные, потом трёхзначные
    • Автор:

      kyliemn4u
    • 5 лет назад
    • 0
  • program qwe;var a, b, c : LongInt;beginread (a,b,c);if (a > 9) and (a < 99) then write(a,' ');if (b > 9) and (b < 99) then write (b,' ');if (c > 9) and (c < 99) then write (c,' ');if (a > 99) and (a < 999) then write (a, ' ');if (b > 99) and (b < 999) then write (b, ' ');if (c > 99) and (c < 999) then write (c, ' ');end.
    • Автор:

      noah
    • 5 лет назад
    • 0
  • Ты не правильно оформил код вот правильный ответ, НО ЭТО РАБОТАЕТ ТОЛЬКО ЕСЛИ ТЕБЕ НАДО НАЙТИ ДВУХЗНАЧНЫЕ ЧИСЛА ИЗ ТРЁХ ВВЕДЁННЫХ   program qwe;var a, b, c : LongInt;beginread (a,b,c);if a div 100 = 0 then write (a,' ');if b div 100 = 0 then write (b,' ');if c div 100 = 0 then write (c,' ');end.
    • Автор:

      kyliednmc
    • 5 лет назад
    • 0
  • Добавить свой ответ

Войти через Google

или

Забыли пароль?

У меня нет аккаунта, я хочу Зарегистрироваться

How much to ban the user?
1 hour 1 day 100 years