Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ProjectsCreation {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String name = scanner.nextLine();
- int countProjects = Integer.parseInt(scanner.nextLine());
- //The architect George will need 12 hours to complete 4 project/s.
- int allTime = countProjects * 3;
- System.out.printf
- ("The architect %s will need %d hours to complete %d project/s.",
- name, allTime, countProjects);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement