Untitled
unknown
c_cpp
2 years ago
281 B
4
Indexable
#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; }
Editor is loading...
Leave a Comment