Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* http://www.hsin.hr/skolska2007/zadaci/bas_pas/druga/zadaci.pdf */
- #include <iostream>
- using namespace std;
- main()
- {
- int h, m, t;
- cin >> h >> m >> t;
- int p = m + t;
- while (p>59)
- {
- h = h + 1;
- p = p - 60;
- }
- cout << h << ":" << p << endl;
- system ("PAUSE");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement