Advertisement
Guest User

creation

a guest
Feb 21st, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4. public static void main(String[] args) {
  5. Scanner sc = new Scanner(System.in);
  6.  
  7. String architectName = sc.nextLine();
  8. int projects = Integer.parseInt(sc.nextLine());
  9.  
  10. int hoursCreating = projects * 3;
  11.  
  12. System.out.printf("The architect %s will need " +
  13. "%d hours to complete %d projects/s.%n",
  14. architectName, hoursCreating ,projects);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement