Предмет: Информатика, автор: lika20097618

Напишите программы для алгоритмов, приведённых ниже в виде блок-схем:

только 1 блок-схему пожалуйста

Приложения:

knodr75: на каком языке?
lika20097618: Python
knodr75: ок сейчас сделаю

Ответы

Автор ответа: knodr75
20

Ответ:

Насколько я понял переменные a и b запрашиваются у пользователя,

а в конце выводится их сумма

Код программы

a = int(input())

b = int(input())

while a != 0 and b != 0:

   if a > b:

       a = a % b

   else:

       b = b % a

else:

   print(a + b)


knodr75: Просьба поставить спасибо, если в правду решение помогло и поставить оценку
Если же вы посчитаете, что это лучший ответ, поставьте лучший ответ
baruyana: можно 2 задачу срочно?!!
Ducksler: привет, можешь помочь? задача у меня в профиле
Похожие вопросы
Предмет: Английский язык, автор: musik00701Муса
Предмет: Английский язык, автор: кисабрыса
V. Open the brackets;
1.Have you ever (to be) to a luxury restaurant?
2.We have just (to order) a three-coursedinner.
3.They have never (to have) fiill English breakfast before. - Have you ever (to try) English cereals? - 1 think, I have.
4.Who (to take) your order, sir? - 1 (not to order) anything yet.
5.Why I (to refuse) to try your chefs special? The fact is, that I (to taste) it many times. - You (to enjoy) it? - Very much.
6.My customers (not to eat and to drink) anything since morning. You (to get) any snacks and drinks? - Of course, we have.
7.A year (to pass) since I attended a convention. Anything (to change) ever since? - Oh, yes. Our company (to develop) some new pre-conventionandpost-conventiontours.
8.What kind of drink the bartender (to mix) for you? - It's a «Margarita». You ever (to have) it? - Not yet, I'm afraid.
9.The banquet manager (to make) bulk purchases of food and drinks yet? - Hopefully, yes. I (not to make) sure yet.
10.You (to get) a master key or an extra key? My customer (to lose) his room key. - He (not to put) it into a key drop, has he? - He thinks, he (to leave) it in his room and (to lock) the door.
11.The catering department (to be) busy this month. The caterers already (to arrange and to serve) a dozen of banquets. And they are going to serve a dozen more.
12.Our manager (to come) to the conclusion that we have to increase our business.
13.Your customers (to choose) the dishes on the menu, haven't they? - Yes, they have. But I personally (not to choose) anything yet.
14.The catering business (not to reach) its peak, has it?
Предмет: Алгебра, автор: varia0481