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