import java.util.*;
public class time
{
public static void main(String args[])
Scanner in = new Scanner(System.in);
int s,m,h;
System.out.println("enter time in seconds =");
s= in.nextInt();
h=s/3600;
s=s%3600;
m=s/60;
s=s%60;
System.out.println("Time is "+h+" hours "+m+" minutes "+s+"seconds");
}
hope it helps you...
please mark it as brainliest...
^_^
All the best
May u come up with good results
My best wishes are there with u dear
Copyright © 2024 EHUB.TIPS team's - All rights reserved.
Answers & Comments
import java.util.*;
public class time
{
public static void main(String args[])
{
Scanner in = new Scanner(System.in);
int s,m,h;
System.out.println("enter time in seconds =");
s= in.nextInt();
h=s/3600;
s=s%3600;
m=s/60;
s=s%60;
System.out.println("Time is "+h+" hours "+m+" minutes "+s+"seconds");
}
}
hope it helps you...
please mark it as brainliest...
^_^
All the best
May u come up with good results
My best wishes are there with u dear