Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
272 B
0
Indexable
Never
#include <iostream>
#include <math.h>
#include <string>

int main() {
    
    int h, m, s;

    int hours = 360 / 12;
    float min = hours / 60.0;
    float sec = min / 60.0;

    std::cin >> h >> m >> s;

    std::cout << h * hours + m * min + sec * s;
}
Leave a Comment