quiz

풀이

package pack_Random;

public class Exercise05 {

	public static void main(String[] args) {
		
		for (int x = 0; x <= 10; x++) {
			for (int y = 0; y <= 10; y++) {
				if ((4 * x) + (5 * y) == 60) {
					System.out.println("(" + x + ", " + y + ")");
				}
			}
		}
	}

}



결과

quiz

Leave a comment