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