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