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