Advertisement
LeRoY_Go

Untitled

Jun 29th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. namespace ConsoleApp4
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. int balanc = 0;
  11. int money = 0;
  12. Queue<int> Сlients = new Queue<int>();
  13. Сlients.Enqueue(20);
  14. Сlients.Enqueue(16);
  15. Сlients.Enqueue(5);
  16. Сlients.Enqueue(8);
  17. Сlients.Enqueue(55);
  18.  
  19. foreach (var Сlient in Сlients)
  20. {
  21. Console.WriteLine(Сlients);
  22. }
  23.  
  24. while (true)
  25. {
  26.  
  27.  
  28. InvoiceDisplay(balanc, money);
  29.  
  30.  
  31. }
  32. }
  33.  
  34. static void InvoiceDisplay(int balanc, int money)
  35. {
  36. Console.SetCursorPosition(0, 20);
  37. balanc += money;
  38. Console.Write("Мой счёт: " + balanc);
  39. Console.ReadLine();
  40. Console.Clear();
  41. }
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement