Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int main(void)
  5. {
  6. char ch;
  7. while((ch = getchar()) != '#')
  8. {
  9. if(ch =='\n')
  10. continue;
  11. cout << "шаг 1\n";
  12. if (ch =='c')
  13. continue;
  14. else if (ch =='b')
  15. break;
  16. else if (ch =='q')
  17. goto laststep;
  18. cout << "шаг 2\n";
  19. laststep: cout << 'шаг 3\n';
  20. }
  21. cout << "done\n";
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement