this sounds like a simple job but i dont nkow how to terminate for loop. i tried things like
endForLoop is bool type. but when i use this some part of my program doesn't worj properly.i want to add a condition within the body of for loop that will terminate or stop for loop regardless of the value of i.Code:for (i = 0; (i < 10) && !endForLoop; i++)