Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#include <iostream>
- //#include <Windows.h>
- //using namespace std;
- //void Towers(int number, int from, int to, int free)
- //{
- // SetConsoleOutputCP(1251);
- // if (number != 0)
- // {
- // Towers(number - 1, from, free, to);
- // cout«"\n Снимаем "«number«"-й диск с "«from«"-го стержня и одеваем его на "«to«"-й стержень";
- // Towers(number - 1, free, to, from);
- // }
- //}
- //void main()
- //{
- // Towers(3, 1, 3, 2);
- // cout«"\n ";
- // system("pause");
- //}
- //
- //
- //ряды 28
- //int main()
- //{
- // string c="58";
- // int summ = 0;
- // /*cin » c;*/
- // for (int i = 0; i < c.size(); i++)
- // {
- // summ += c[i]-48;
- // }
- // cout « summ;
- // system("pause");
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement