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 outerDots = n + (n / 2);
- Console.Write(new string('.', outerDots));
- Console.Write(new string('*', 1));
- Console.WriteLine(new string('.', outerDots));
- int nextOuterDots = n + (n / 3);
- int innerDots = 1;
- int asterisks = 1;
- for (int i = 0; i < n - 1; i++)
- {
- string nextOuterDotsString = new string('.', nextOuterDots);
- string innerDotsString = new string('.', innerDots);
- string asterisksString = new string('*', asterisks);
- Console.WriteLine(nextOuterDotsString + asterisksString + innerDotsString + asterisksString + nextOuterDotsString);
- nextOuterDots--;
- innerDots += 2;
- }
- int nekviSiDots = 1;
- int vatreshniDots = 11;
- string anotherNextOuterDotsStringggg = new string('.', nekviSiDots);
- string asteriksiMasteriksi = new string('*', asterisks);
- string vatreshniDotsString = new string('.', vatreshniDots);
- Console.WriteLine(anotherNextOuterDotsStringggg + asteriksiMasteriksi + vatreshniDotsString + asteriksiMasteriksi + anotherNextOuterDotsStringggg);
- int asterisksFour = 1;
- int firstInnerDots = n - 2;
- int secondInnerDotsss = n;
- for (int i = 0; i < n / 3; i++)
- {
- string asterisksFourString = new string('*', asterisksFour);
- string firstInnerDotsString = new string('.', firstInnerDots);
- string secondInerDotrsssString = new string('.', secondInnerDotsss);
- Console.WriteLine(asterisksFourString + firstInnerDotsString + asterisksFourString + secondInerDotrsssString + asterisksFourString + firstInnerDotsString + asterisksFourString);
- firstInnerDots -= 2;
- }
- int posledniteeAsterisks = 1;
- int innerrrrrrrDots = n;
- int inerDotsKoitoSaEinicaaaa = 1;
- string posledniteeAsterisksString = new string('*', posledniteeAsterisks);
- string innerrrrDotsString = new string('.', innerrrrrrrDots);
- string inerDotsKoitoSaEdinicaaaaString = new string('.', inerDotsKoitoSaEinicaaaa);
- Console.WriteLine(posledniteeAsterisksString + inerDotsKoitoSaEdinicaaaaString + posledniteeAsterisksString + inerDotsKoitoSaEdinicaaaaString + posledniteeAsterisksString + innerrrrDotsString + posledniteeAsterisksString + inerDotsKoitoSaEdinicaaaaString + posledniteeAsterisksString + inerDotsKoitoSaEdinicaaaaString + posledniteeAsterisksString);
- int finishOuterDots = n - 1;
- int finishAsterisks = 1;
- int finishInnerDots = n;
- for (int i = 0; i < n - 1; i++)
- {
- }
- string finishOuterDotsString = new string('.', finishOuterDots);
- string finishAsterisksString = new string('*', finishAsterisks);
- string finishInnerDotsString = new string('.', finishInnerDots);
- Console.WriteLine(finishOuterDotsString + finishAsterisksString + finishInnerDotsString + finishAsterisksString + finishOuterDotsString);
- finishInnerDots += 2;
- finishOuterDots--;
- int lastFinalAsterisks = n * 3;
- string lastFinalAsterisksString = new string('*', lastFinalAsterisks);
- Console.WriteLine(lastFinalAsterisksString);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement