Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
179 B
1
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	int h, m, s;
	float g;
	cin >> h >> m >> s;
	g = (30 * h) + float((0.5*m)) + float((0.00833333*s));
	cout << g;
}
Leave a Comment