Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _02Solution
- {
- class Program
- {
- static void Main(string[] args)
- {
- int number = 7;//int.Parse(Console.ReadLine());
- int count1 = 0;
- for (int row = 0; row < number + number / 2; row++)
- {
- for (int col = 0; col < number; col++)
- {
- if (count1 >= 2 && count1 <= 4)
- {
- Console.Write('.');
- count1++;
- }
- else
- {
- Console.Write('#');
- count1 = 2;
- }
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement