Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
281 B
1
Indexable
Never
#include <iostream>
using namespace std;
int main() 
{
    int H, M, S;
    cin >> H >> M >> S;
    double hours = H * 30;
    double minutes = M * 0.5;
    double seconds = S * (1.0 / 120);
    double ygol = hours + minutes + seconds;
    cout << ygol;
    return 0;
}
Leave a Comment