Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- int l, k, j, t, n1, m, p, s, n = 0;
- char input [256];
- std::cout << "Введите число: ";
- std::cin >> input;
- n = atoi(input);
- l = n / 60;
- k = n % 60;
- if (k > 34) {
- l += 1;
- } else {
- j = k / 10;
- t = k % 10;
- if (t == 9) {
- j += 1;
- } else {
- n1 = t;
- }
- }
- std::cout << n1 << "; " << j << "; " << l;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement