Untitled

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