wes d2a2ba9e15 first commit | 4 лет назад | |
---|---|---|
.. | ||
README.md | 4 лет назад | |
code.cpp | 4 лет назад | |
unitTest.cpp | 4 лет назад |
by Matt tags: language_fundamentals, math
Write a function that takes two integers (hours, minutes) and converts them into seconds. Examples convert(1, 3) ➞ 3780 convert(2, 0) ➞ 7200 convert(0, 0) ➞ 0 Notes Don't forget to return the result. If you get stuck on a challenge, find help in the Resources tab. If you're really stuck, unlock solutions in the Solutions tab.
Write a function that takes two integers (hours
, minutes
) and converts them into seconds.
convert(1, 3) ➞ 3780
convert(2, 0) ➞ 7200
convert(0, 0) ➞ 0
return
the result.