Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site whuxle.UUCP Path: utzoo!linus!security!genrad!grkermit!masscomp!clyde!floyd!whuxle!eric From: eric@whuxle.UUCP Newsgroups: net.lang.c Subject: Re: Unnecessary Goto's - (nf) Message-ID: <186@whuxle.UUCP> Date: Tue, 13-Dec-83 17:22:54 EST Article-I.D.: whuxle.186 Posted: Tue Dec 13 17:22:54 1983 Date-Received: Thu, 15-Dec-83 02:06:15 EST Sender: eric@whuxle.UUCP Organization: Bell Labs, Whippany Lines: 12 #R:allegra:-202800:whuxle:23200002:000:223 whuxle!npl Dec 3 15:34:00 1983 While mark's formulation is by far the clearest so far, why not try this? for( goodans = 0; !goodans ; printf("Try again\n") { printf("what's 2 plus 2? "); ....... /* code which check results and sets goodans */ }