fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. int daysInYear = 365;
  13. int hoursInDay = 24;
  14. int minutesInHour = 60;
  15. int age = 18;
  16.  
  17. // Convert values
  18. int days = age * daysInYear;
  19. int hours = days * hoursInDay;
  20. int minutes = hours * minutesInHour;
  21.  
  22. // Print them out
  23. System.out.println(days);
  24. System.out.println(hours);
  25. System.out.println(minutes);
  26. // your code goes here
  27. }
  28. }
Success #stdin #stdout 0.06s 32352KB
stdin
Standard input is empty
stdout
6570
157680
9460800