Untitled

 avatar
user_5811307
plain_text
7 months ago
268 B
1
Indexable
Never
#include <iostream>
using namespace std;
#include <cmath>

int main()
{
    float grad, sum;
    cin >> grad;
    sum = (grad /30);
    int min =int(sum*60) - (int(sum)*60);
    cout << int(sum) << " " << min<< " "<< round(sum*3600- int(sum)*3600 - min*60) << endl;
}
Leave a Comment