Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a, b, c, v, m, min;
- cout << "Iveskite, kada pakilo lektuvas (valanda ir minute) bei kiek laiko jis praleido ore (minutemis)." << endl;
- cin >> a >> b >> c;
- cout << "Lektuvas pakilo " << a << ":" << b << endl;
- min = a*60 + b + c;
- v = (min / 60) % 24;
- m = min % 60;
- cout << "Lektuvas nusileis " << v << ":" << m;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement