Задание 2.
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
int h = 2;
int m = 23;
int s = 45;
cout << "Given time is " << h << ":" << m << ":" << s << endl;
double h1 = h*30;
double m1 = m*0.5;
double s1 = s*(360.000000/12/60/60);
double angle = h1+m1+s1;
cout << "Angle at the given time = " << angle << " degrees" << endl;
system("PAUSE");
return EXIT_SUCCESS;
}
Не знайшли потрібну інформацію? Скористайтесь пошуком google:
|
|