Search posts...
class Solution { public int solution(int n) { for(int i=1; ; i++){ if((6*i)%n==0){ return i; } } } }
class Solution { public int solution(int n) { int answer = 1; while(true){ if(6*answer%n==0) break; answer++; } return answer; } }
while (조건) { // 반복할 코드 }
silver