Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. //#include <iostream>
  2. //#include <Windows.h>
  3. //using namespace std;
  4. //void Towers(int number, int from, int to, int free)
  5. //{
  6. // SetConsoleOutputCP(1251);
  7. // if (number != 0)
  8. // {
  9. // Towers(number - 1, from, free, to);
  10. // cout«"\n Снимаем "«number«"-й диск с "«from«"-го стержня и одеваем его на "«to«"-й стержень";
  11. // Towers(number - 1, free, to, from);
  12. // }
  13. //}
  14. //void main()
  15. //{
  16. // Towers(3, 1, 3, 2);
  17. // cout«"\n ";
  18. // system("pause");
  19. //}
  20. //
  21. //
  22. //ряды 28
  23. //int main()
  24. //{
  25. // string c="58";
  26. // int summ = 0;
  27. // /*cin » c;*/
  28. // for (int i = 0; i < c.size(); i++)
  29. // {
  30. // summ += c[i]-48;
  31. // }
  32. // cout « summ;
  33. // system("pause");
  34. //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement