program to display time in hours,and convert time into minutes as well as seconds
stud3nt7645:
anyone can answer?
Answers
Answered by
1
import java.util.*;
class Time
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
Sopln("Input seconds");
int sec= sc.nextInt();
int hours=sec/3600;
sec=sec(PERCENTAGE SIGN)3600;
int min=sec/60;
Sopln("Hours:"+hours);
Sopln("Minutes"+min);
Sopln("Second"+seconds);
}
}
Similar questions
World Languages,
7 months ago
Music,
7 months ago
World Languages,
1 year ago
History,
1 year ago
Hindi,
1 year ago
History,
1 year ago