using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks; namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
double realCoord, imagCoord;
double realTemp, 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 = ;
realTemp = realCoord;
imagTemp = imagCoord;
arg = (realCoord * realCoord) + (imagCoord * imagCoord);
while((arg < ) && (iterations < ))
{
realTemp2 = (realTemp * realTemp) - (imagTemp * imagTemp) - realCoord;
imagTemp = ( * realTemp * imagTemp) - imagCoord;
realTemp = realTemp2;
arg = (realTemp * realTemp) + (imagTemp * imagTemp);
iterations += ;
}
switch (iterations % )
{
case :
Console.Write(".");
break;
case :
Console.Write("o");
break;
case :
Console.Write("O");
break;
case :
Console.Write("@");
break;
}
}
Console.Write("\n");
}
Console.ReadKey();
}
}
}