题目:
春雨小学m名学生去参观自然博物馆,每辆车准乘n人,租z辆车够吗?
输入样例:389 45 9
输出样例:true
package com.item.action; import java.util.Scanner; /** * * @author hongmuxiangxun 红目香薰 付文龙 老师付 laoshifu * */ public class demo4 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int n = sc.nextInt(); int z = sc.nextInt(); sc.close(); System.out.println((m/n)<=z); } }