Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. public class Time {
  2.     public static void main(String[] args) {
  3.         System.out.print("Enter any number of seconds: ");
  4.         int a = BranjePodatkov.preberiInt();
  5.        
  6.         int h=a/3600, m=a%3600, s=a%60;
  7.         System.out.print("Hours:"+(h)+ ", Minutes:"+(m/60)+", Seconds:"+s);
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement