Is there a way to exit from loop statements?

I assume you mean with SKILL?!


Normal Loop

prog( ( i )

i = 1
while( i <= 10
printf( "I = %n\n" i )
i++
)

)


Exit from Loop

prog( ( i )

i = 1
while( i <= 10
printf( "I = %n\n" i )
i++
when( i == 5
return( i )
)
)

)


But this is not a popper programming manner, as you might know.
There may be other programming ways to solve your problem.

Bernd



Rajeswaran M wrote:
> Is there a way to exit from loop statements?
 

Welcome to EDABoard.com

Sponsor

Back
Top