Untitled
unknown
c_cpp
2 years ago
272 B
3
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