Advertisement
Tervel

kolona

Feb 22nd, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _02Solution
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int number = 7;//int.Parse(Console.ReadLine());
  10.  
  11. int count1 = 0;
  12.  
  13. for (int row = 0; row < number + number / 2; row++)
  14. {
  15. for (int col = 0; col < number; col++)
  16. {
  17. if (count1 >= 2 && count1 <= 4)
  18. {
  19. Console.Write('.');
  20. count1++;
  21. }
  22. else
  23. {
  24. Console.Write('#');
  25. count1 = 2;
  26. }
  27. }
  28. Console.WriteLine();
  29. }
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement