and a break statement to emulate a loop with exit loop. */
Score = 0;
FOREVER
GetNextRating( RatingIncrement );
Rating = Rating + RatingIncrement );
If (!( Score < TargetScore && RatingIncrement != 0 ))
break;
GetNextScore( &SoreIncrement);
Score Score + ScoreIncrement;
Ada
Ada loop with exit
- Compute scores and ratings
Score := 0;
Loop
GetNextRating( RatingIncrement );
Rating := Rating + RatingIncrement;
exit when ( not ( Score < TargetScore and RatingIncrement!=0 ));
GetNextscore ( ScoreIncrement ) ;
Score := Score + ScoreIncrement;
end loop;
loop-with exit
loop with exit Ada
loop-with-exit
loop with exit Ada
loop with exit
25 loop with exit
loop-with-exit
loop with exit
loop with exit