Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Reception {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int employeesOne = Integer.parseInt(scanner.nextLine());
- int employeesTwo = Integer.parseInt(scanner.nextLine());
- int employeesThree = Integer.parseInt(scanner.nextLine());
- int allStudents = 0;
- int studentsHour = 0;
- double neededTime = employeesOne + employeesTwo + employeesThree;
- while (allStudents > 0) {
- if (allStudents % 4 == 0) {
- allStudents -= studentsHour;
- continue;
- }
- }
- System.out.printf("Time needed: %f.", neededTime);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement