Untitled

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

int main() {
	setlocale(LC_ALL, "Russian");
	int h, m, s;
	float a = 0.0;
	cin >> h >> m >> s;
	a += 30.0 * float(h);
	a += 0.5 * float(m);
	a += (360.0 / 43200.0) * float(s);
	cout << a;
}
Leave a Comment