Advertisement
NikolayNenchev

Untitled

Sep 12th, 2020
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class practice1 {
  4. public static void main(String[] args) {
  5. Scanner scanner = new Scanner(System.in);
  6. String firstName = scanner.nextLine();
  7. int a = 3;
  8. int b = Integer.parseInt(scanner.nextLine());
  9. int product = a * b;
  10.  
  11. System.out.printf("The architect %s will need %d hours to complete %d project/s.",firstName,product,b);
  12. }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement