Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace DrawPlane
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int firstOuterDots = (n * 3) / 2;
- Console.WriteLine("{0}*{0}", new string('.', firstOuterDots));
- int secOuterDots = (n * 3) / 2 - 1;
- int secInnerDots = 1;
- for (int i = 0; i < n - 2; i++)
- {
- Console.WriteLine("{0}*{1}*{0}", new string('.', secOuterDots),
- new string('.', secInnerDots),
- new string('.', secOuterDots));
- secOuterDots--;
- secInnerDots += 2;
- }
- int prepreOuterDotss = 3;
- int prepreInnerDotss = (n * 3) - 8;
- for (int i = 0; i < 1; i++)
- {
- Console.WriteLine("{0}*{1}*{0}", new string('.', prepreOuterDotss),
- new string('.', prepreInnerDotss),
- new string('.', prepreOuterDotss));
- }
- int prethOuterDots = 1;
- int prethInnerDots = (n * 3) - 4;
- for (int i = 0; i < 1; i++)
- {
- Console.WriteLine("{0}*{1}*{0}", new string('.', prethOuterDots),
- new string('.', prethInnerDots),
- new string('.', prethOuterDots));
- }
- int thOuterDots = n - 2;
- int thInnerDots = n;
- for (int i = 0; i < 1; i++)
- {
- Console.WriteLine("*{0}*{1}*{0}*", new string('.', thOuterDots),
- new string('.', thInnerDots),
- new string('.', thOuterDots));
- }
- int fourthOuterDots = n - 2;
- int fourthInerDots = n;
- for (int i = 1; i < 1; i++)
- {
- Console.WriteLine("*{0}*{1}*{0}", new string('.', fourthOuterDots),
- new string('.', fourthInerDots),
- new string('.', fourthOuterDots));
- }
- int fiveOuterDots = n - 4;
- int fiveInnerDots = 1;
- int fiveMidDots = n;
- for (int i = 0; i < (n / 2) - 1; i++)
- {
- Console.WriteLine("*{0}*{1}*{2}*{1}*{0}*", new string('.', fiveOuterDots),
- new string('.', fiveInnerDots),
- new string('.', fiveMidDots),
- new string('.', fiveInnerDots),
- new string('.', fiveOuterDots));
- fiveOuterDots -= 2;
- fiveInnerDots += 2;
- }
- int finalOuterDots = n - 1;
- int finalMidDots = n;
- for (int i = 0; i < n - 1 ; i++)
- {
- Console.WriteLine("{0}*{1}*{0}", new string('.', finalOuterDots),
- new string('.', finalMidDots),
- new string('.', finalOuterDots));
- finalOuterDots--;
- finalMidDots += 2;
- }
- int asterisksksks = n * 3;
- for (int i = 0; i < 1; i++)
- {
- Console.WriteLine("{0}", new string('*', asterisksksks));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement