Untitled
Anonymous
c_cpp
11/25/2023 1:02 AM
364 B
11
Indexable
#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;
}Editor is loading...
Leave a Comment