Advertisement
desislava_topuzakova

01. Read Text

Jul 1st, 2023
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _01._Read_Text
  4. {
  5. internal class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. //while цикъл
  10. //повтаряме: четем текст + принтираме
  11. //стоп: текст == "Stop"
  12. //продълкжавам: текст != "Stop"
  13.  
  14. string input = Console.ReadLine();
  15.  
  16. while (input != "Stop")
  17. {
  18. Console.WriteLine(input);
  19. input = Console.ReadLine();
  20. }
  21.  
  22. }
  23. }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement