Uzunlugu ve Genisligi kılavyeden girilen satranc tahtası C# Console
[code lang=”csharp”]
class Program
{ //Daha fazla bilgi için www.gorselprogramlama.com
static void Main(string[] args)
{
Console.Write("Uzunluk değerini giriniz :");
int x = int.Parse(Console.ReadLine());
Console.Write("Genişlik değerini giriniz :");
int y = int.Parse(Console.ReadLine());
for (int i = 0; i < x; i++)
{
for (int j = 0; j < y; j++)
{ //Daha fazla bilgi için www.gorselprogramlama.com
if ((i + j) % 2 == 0)
{
Console.BackgroundColor = ConsoleColor.Black;
Console.Write(" ");
}
else
{
Console.BackgroundColor = ConsoleColor.White;
Console.Write(" ");
}
}
Console.WriteLine();
}
Console.ReadKey();
}
} //Daha fazla bilgi için www.gorselprogramlama.com
[/code]

vb için olanınıda yaparmısınız.
bence çok güzel bir program daha çok satranç gibi olsaydı daha güzel olurdu
Bunu python a uyarlayabilir miyiz?
Esat akgul :
Olabilir.