CSharp · Console
using System;
namespace Change_on_specific_possitions
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Enter some number,which can't devide on 2 and bigger than 3(5,7,9 etc.)");
int cols = int.Parse(Console.ReadLine());
//int copyrightToInt = (int)'©';
char copyright = '©';
int count = 1;
//Console.Write(new string(' ', cols/2));
Console.Write(new string(' ', cols));
Console.Write(copyright);
//Console.Write(new string(' ', cols/2));
Console.WriteLine();
//for (int i = cols / 2; i > 0; i--)
for (int i = cols - 1; i > 0; i--)
{
if (i != 1)
{
//Console.Write(new string(' ', i - 1));
Console.Write(new string(' ', i));
Console.Write(copyright);
Console.Write(new string(' ', count));
Console.Write(copyright);
//Console.Write(new string(' ', i - 1));
Console.Write(new string(' ', i));
Console.WriteLine();
count += 2;
}
//else if (i == 1)
else
{
//for (int y = 0; y < cols; y++)
for (int j = 1; j <= cols; j++)
{
//if (j%2 != 0)
//{
// Console.Write(' ');
//}
//else
//{
// Console.Write(copyright);
//}
Console.Write(" {0}", copyright);
}
}
}
Console.WriteLine();
Console.WriteLine("Cool Isn't it?");
}
}
}