Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int input = int.Parse(Console.ReadLine());// 6
- int width = ((input * 2) + (input * 6 - 2)) + 1; // (input * 2) + (input * input) - 2
- for (int i = 1; i <= input + 3; i++)
- {
- if (i % 2 != 0)
- {
- for (int j = 1; j <= input; j++)
- {
- Console.Write("{0} ", '*');
- }
- Console.Write("{0}{1}", ' ', new string('=', input * 6 - 2));
- }
- else
- {
- for (int j = 1; j <= input - 1; j++)
- {
- Console.Write(" *");
- }
- Console.Write("{0}{0}{0}{1}", " ", new string('=', input * 6 - 2));
- }
- Console.WriteLine();
- }
- for (int i = 1; i <= input; i++)
- {
- Console.WriteLine("{0}", new string('=', width));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement