How do I terminate a FOR Loop?

This is a discussion on How do I terminate a FOR Loop? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; In the below FOR Loop, I only want VALUE FOUND or VALUE NOT FOUND
printed once. Right now depending on ...

How do I terminate a FOR Loop?

In the below FOR Loop, I only want VALUE FOUND or VALUE NOT FOUND
printed once. Right now depending on what array[index] the value is in
(ie. if it's in the third index) it will print VALUE NOT FOUND twice, then
VALUE FOUND.

How do I modify to print either statement 1x? Partial Code follows...
-----------------------------------------------------------------------------------------------------