static void Main(string[] args) { var c = new myclass(); int counter = 0; for(int x = 0 ; x < 100 ; x++) { if(c.Go() != 0) { Console.WriteLine("Iteration {0} doesn't = 0", x); } } }