Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int persons = Integer.parseInt(scanner.nextLine()),
- capacity = Integer.parseInt(scanner.nextLine()),
- courses = (int)(Math.ceil((double)(persons) / (double)(capacity)));
- System.out.println(courses);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement