← Unit 1 · all exercises
Saved in this browser only

Hours to seconds

Return how many seconds there are in the given number of hours.

int seconds(int hours)

Solution.java
Loading editor…
Results

Examples

  • seconds(1) → 3600
  • seconds(2) → 7200

There are also 3 hidden tests you can't see. Solve the problem, not the examples.