Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ConsoleApp1
- {
- using System;
- public class Program
- {
- static void Main()
- {
- int num = int.Parse(Console.ReadLine());
- for (int i = 0; i < num / 2; i++)
- {
- Console.WriteLine(new string(' ', i) + "x" + new string(' ', (num - 2) - i * 2) + "x" + new string(' ', i));
- }
- Console.WriteLine(new string(' ', num / 2) + "x" + new string(' ', num / 2));
- for (int j = 0; j < num / 2; j++)
- {
- Console.WriteLine(new string(' ', ((num / 2 ) - 1) - j ) + "x" + new string(' ', (j + 1) * 2 - 1) + "x" + new string(' ', ((num / 2) - 1)));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement