Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int width = scale * 5;
- //int height = 0;
- if (scale % 2 == 0)
- {
- height = scale * 2;
- }
- else
- {
- height = scale * 2 - 1;
- }
- char backgroundHyphen = '-';
- int backgroundHyphensStartNum = scale * 3;
- int backroundHyphenEndNum = scale * 2 - 2;
- char axeSymbol = '*';
- int axeSymbolNum = 1;
- int innerHyphenNum = 0;
- for (int i = 1; i <= scale; i++)
- {
- Console.WriteLine("{0}{1}{2}{1}{3}", new string(backgroundHyphen, backgroundHyphensStartNum), new string(axeSymbol, axeSymbolNum), new string(backgroundHyphen, innerHyphenNum), new string(backgroundHyphen, backroundHyphenEndNum));
- innerHyphenNum++;
- backroundHyphenEndNum--;
- }
- int hadleLength = scale / 2;
- char handleSymbol = '*';
- for (int i = 1; i <= hadleLength; i++)
- {
- Console.WriteLine("{0}{1}{2}{1}{3}", new string(handleSymbol, backgroundHyphensStartNum), new string(axeSymbol, axeSymbolNum), new string(backgroundHyphen, innerHyphenNum), new string(backgroundHyphen, backroundHyphenEndNum));
- }
- int lowerPartLength = scale / 2;
- for (int i = 1; i <= lowerPartLength; i++)
- {
- if (i < lowerPartLength)
- {
- Console.WriteLine();
- }
- else if (i == lowerPartLength)
- {
- Console.WriteLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement