Java program to read a time in minutes and split it into days,hours and minutes
Answers
Answered by
1
Java program :-
*/ program to convert hour in min and sec
/*
class convert
{
public static void main ( String args [] )
{
int h , m , s , d
h = 15
m = h * 60
s = h * 360
float d = h / 24
System.out.printIn ( "Time in min =" + m ) ;
System.out.printIn ("Time in sec = " + s ) ;
System.out.printIn ("Time in days =" + d )
}
}
Similar questions