Untitled
unknown
c_cpp
2 years ago
167 B
3
Indexable
#include <iostream> using namespace std; int main() { float h; float m; float s; cin >> h >> m >> s; cout << h * 30 + m * 30 / 60 + s * 30 / 3600; }
Editor is loading...
Leave a Comment
#include <iostream> using namespace std; int main() { float h; float m; float s; cin >> h >> m >> s; cout << h * 30 + m * 30 / 60 + s * 30 / 3600; }