about | help | code help+videos | done | prefs |
aggiungiMinuti - Il metodo ha 3 argomenti interi: ore, minuti, nMinuti. Si sommano nMinuti al tempo ore:minuti e si restituisce il tempo così ottenuto in un stringa in formato "ore:minuti". Per esempio, se a un tempo di 25 ore e 30 minuti sommiamo 70 minuti, otteniamo un tempo di 26 ore e 40 minuti, da scrivere "26m 40s". aggiungiMinuti(1, 20, 30) → "1h 50m" aggiungiMinuti(1, 20, -10) → "1h 10m" aggiungiMinuti(1, 10, -65) → "0h 5m" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 150
Copyright Nick Parlante 2017 - privacy