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

Сколько промежуточных переменных потребуется для того, чтобы переменной А было присвоено значение В, переменной В - значение переменной С, а переменной С - значение переменной А? Запишите соответствующий алгоритм на алгоритмическом языке.

Ответы

Автор ответа: Plugin
0
1 вспомогательная переменная

х:=В;
В:=С;
С:=А;
А:=х;
Автор ответа: Аноним
0
Как скучно.. А если сказать, что переменные - это числа, то можно обойтись и без доп. переменной..
Автор ответа: Plugin
0
Всмысле? Поподробней пожалуйста.
Автор ответа: Аноним
0
Я не в ту сторону всё поменял, но думаю смысл ясен..
Автор ответа: Аноним
0
Тьфу! Ссылку-то забыл... http://ideone.com/CoWHWf
Похожие вопросы
Предмет: Английский язык, автор: koptseva44
Пожалуйста, помогите с временами! Срочно! По возможности правильно.

Раскройте скобки, употребляя глаголы в Past Simple, Past Continuous и Past Pertect.
1. There (to be) two men in the room. One of the (to write) something while the other (to read) a new paper.
2. He (not to tell) me that he (to receive)
a telegram from her.
3. I (to ask) him if he (to know)
where she (to live). I (to say) I (not to know) her address.
4. He (to ask) me if I (can) give him your address.
5. She (to say) that he (to give) her the wrong address.
6. I (to ask) him where he (to put) my letter.
7. He (to tell) us that they (to spend) all the money.
8. I (to sit) in an armchair and (to think) of my coming trip across the North Sea when the door suddenly (to open) and an old friend of mine whom l (not to see) for a very long time (to enter) the room.
9. She (to come) to see us just at the time when we (to have) dinner. It (to be) the first time I (to see) her.
10. I (to see) him just as he (to leave) the hotel.
11. I (not to see) him before we (to meet) at the concert.
12. He (to leave) the house before I (to have) time to ask him anything.
13. After spending several days in Paris he (to feel) lonely and (to want) to
return home.
14. I (to think) he already (to go) home.
15. I (to find) the old man in the garden. He (to talk) to some children who (to stand) around listening to him.
16. He (to speak) a language we never (to hear) before.
17. He (to tell) me he (to learn) it from the newspaper.
18. He (to enter) the room, (to take)
something from the desk and (to go) out.