Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- int hours, minutes;
- cin >> hours >> minutes;
- minutes += 15;
- if (minutes >= 60)
- {
- hours++;
- minutes -= 60;
- }
- if (hours <= 24)
- {
- hours <= 24;
- }
- cout << hours << ":";
- if (minutes < 10)
- {
- cout << "0";
- }
- cout << minutes << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement