public static void Main()
Console.WriteLine("initial bool value "+isDead +" you are entering the loop as the condioton !ISdead evaluates to "+ !isDead);
Console.WriteLine("in loop value "+isDead);
Console.WriteLine("enter a number less than 5 to stop loop testing - otherwise enter a number larger than 5"
+"\nif you enter a string it will terminate - only int!");
Console.WriteLine("you will exit the loop now! via break :D ");
Console.WriteLine("sample 4 loop that prints the length of agivin name ( ends when the counter reaches the length of my sting)");
for(counter = 0; counter<myName.Length; counter++){
Console.WriteLine(myName[counter]);}
Console.WriteLine("Sample Do while -this will print at least once - even if the exp is false - it evaluates it at the end");
Console.WriteLine("sample for each loop - will print \"print\" equal to letters in print");
foreach ( int i in Test){
Console.WriteLine(Test);}
Console.WriteLine("enter 10 if you want to exit the loop ( by chaning the boolean value)");
x= int.Parse(Console.ReadLine()); Console.WriteLine(x);
Console.WriteLine("you eill exit the loop because of the boolean value "+ isDead +"not true is false!");
Console.WriteLine("end of while loop");