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 scan = new Scanner(System.in);
- String name = scan.nextLine();
- int hours = 3;
- int numberProjects = Integer.parseInt(scan.nextLine());
- int neededHours = numberProjects * hours ;
- System.out.printf("The architect %s will need %d hours to complete %d project/s.", name, neededHours, numberProjects);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement