9.19 Money exchange problem

public class Demo2 { public static void main(String[] args) { for (int x = 0; x < 5; x++) { for (int y = 0; y < 10; y++) { for (int z = 0; z < 50; z++) { if (1x+0.5y+0.1*z==5) {




					System.out.println("一元能换"+x+"个"+","+"五角能换"+y+"个"+","+"一角能换"+z+"个");
				}
			}
		}
	}
}

}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325402033&siteId=291194637