Hi, I think a 3rd possibility for the solution of Exercise 2 in Chapter 4 is:
Code:
static void Main(string[] args)
{
int num1, num2;
bool areGreater = true;
do{
Console.WriteLine("Write one number");
num1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Write another number");
num2 = Convert.ToInt32(Console.ReadLine());
if ((num1 > 10) || (num2 > 10))
{
Console.WriteLine("Numbers should be lesser than 10");
}
else { areGreater = false; }
} while (areGreater);
Console.WriteLine("{0} and {1} are lesser than 10",num1, num2 );
Console.ReadKey();
}
Interesting the Mandelbrot set example, it'll take more math mindset to decode it. Hah.