Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Time {
- public static void main(String[] args) {
- System.out.print("Enter any number of seconds: ");
- int a = BranjePodatkov.preberiInt();
- int h=a/3600, m=a%3600, s=a%60;
- System.out.print("Hours:"+(h)+ ", Minutes:"+(m/60)+", Seconds:"+s);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement