Written by
java-style
on
on
Java while 연습,
Java while 연습,
package a;
public class newclass14{
public static void main(String[] args) {
while(true){
int a = (int)(Math.random()*6)+1;
int b = (int)(Math.random()*6)+1;
int c = a+b;
System.out.println("(" + a + "+"+ b + ")");
if(c == 4){
break;
}
}
}
}
from http://workerst.tistory.com/20 by ccl(A) rewrite - 2021-10-05 20:27:38