Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
LunarLanding.java
import java.util.*; public class Elapsed1 { public void calcHMS(int timeInSeconds) { int hours, minutes, seconds; hours = timeInSeconds / 3600; timeInSeconds = timeInSeconds - (hours * 3600); minutes = timeInSeconds / 60; timeInSeconds = timeInSeconds - (minutes * 60); seconds = timeInSeconds; System.out.println(hours + " hour(s) " + minutes + " minute(s) " + seconds + " second(s)"); } public static void main(String[] args) { Elapsed1 elap = new Elapsed1(); elap.calcHMS(10000); } }
run
|
edit
|
history
|
help
0
Switch
JAVA # Karekök Hesaplama
Round Price
Геттеры и сеттеры для класса Dog
reserve array value
Job and Trait Generator
4b
PE #12
Combination Sum (Leetcode)
amit