How do you properly do a break function?
I typed in:
This gave me a syntax error what did I do wrong?
what language is this in? and in what context are you using it?
in most languages
break is used to break a loop
this outputs the numbers 0 to 4, because when I is 5 it breaks the loop.
the correct syntax is just
(). I hope this is helpful