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