Computer Science, asked by ashnarajesh35, 8 months ago

write a program to input the time in second. display the time after converting them into hours, minutes and seconds ​

Answers

Answered by anshmalik1344
2

Answer:

start with public class time and second

public static void main string args

int time;

double second;

sopln { input time in sec };

time = sec;

sopln{ input time in minutes};

time= sec/60;

sopln { input time in hours };

time=minutes/3600;

sc.close()

Explanation:

how you will understand it is just for example

Similar questions