id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

dario.sonego@gmail.com > sommaTempi
prev  |  next  |  chance

sommaTempi. Sei parametri h1,m1,s1,h2,m2,s2 che rappresentano ore-minuti-secondi di 2 tempi d'esecuzione. Restituire la somma (h,m,s) dei 2 tempi, come stringa del tipo "h ore, m min, s sec"


sommaTempi(0, 0, 10, 0, 0, 20) → "0 ore, 0 min, 30 s"
sommaTempi(5, 10, 0, 0, 37, 0) → "5 ore, 47 min, 0 s"
sommaTempi(200, 30, 0, 0, 42, 0) → "201 ore, 12 min, 0 s"

...Save, Compile, Run (ctrl-enter)

public String sommaTempi(int h1, int m1, int s1, int h2, int m2, int s2) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 220

Copyright Nick Parlante 2017 - privacy