• блок схема для программы

    program Project2;
     {$APPTYPE CONSOLE}


     

    uses

     
    SysUtils;


     

    Var a,b,c:integer;


    Function Nod(a,b:integer):integer;


    Begin


        While a<>b do

       
      if a>b then a:=a-b

       
       else b:=b-a;

     
        Nod:=a;


    End;


    Begin

      
      write('Vvedite a,b,c: ');readln(a,b,c);


        writeln('Nod(a,b,c): ',Nod(Nod(a,b),c));

     
       readln;
    End.

Ответы 1

  • var  a, b, c: integer;begin  write('Vvedite a,b,c: ');  readln(a, b, c);    while a <> b do    if a > b then a := a - b    else b := b - a;    while a <> c do    if a > c then a  := a - c    else c := c - a;    writeln('Nod(a,b,c): ', a);  readln;end.
    answer img
    • Автор:

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

Войти через Google

или

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

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

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