Loops/Break: Difference between revisions

no edit summary
(Forth)
No edit summary
Line 29:
 
=={{header|Java}}==
<lang java>while(true){import java.util.Random;
 
int a = (int)(Math.random()*20);
Random rand = new Random();
while(true){
int a = (int)(Mathrand.randomnextInt()*20);
System.out.println(a);
if(a == 10) break;
int ba = (int)(Mathrand.randomnextInt()*20);
System.out.println(b);
}</lang>
Anonymous user