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