using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
double realCoord, rd;
double readlTemp, imagTemp, realTemp2, arg;
int iterations;
for (imagCoord = 1.2; imagCoord >= -1.2; imagCoord -= 0.05)
{
for (realCoord = -0.6; realCoord <= 1.77; realCoord += 0.03)
{
iterations = 0;
realTemp = realCoord;
imagTemp = imagCoord;
arg=(realCoord*realCoord)+(imagCoord*imagCoord);
while ((arg < 4) && (iterations < 40))
{
realTemp2 = (realTemp2 * realTemp) - (imagTemp * imagTemp) -
realCoord;
imagTemp = (2 * readlTemp * imagTemp) - imagCoord;
realTemp = realTemp;
arg=(realTemp*realTemp)+(imagTemp*imagTemp);
iterations += 1;
}
switch(iterations%4)
{
case0:
Console.Write(".");
break;
case1:
Console.Write("0");
break;
case2:
Console.Write("o");
break;
case3:
Console.Write("@");
break;
}
}
Console.Write("\n");
}
Console.ReadKey();
}
}
}