-
Notifications
You must be signed in to change notification settings - Fork 0
/
π=3.24.cpp
31 lines (26 loc) · 1.09 KB
/
π=3.24.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include<iostream>
using namespace std;
int main() {
setlocale(LC_ALL, "Russian");
float PI, radian;
float degree = 360.f;
float degreece;
cout << "\n Формула | The formula is: 360°=(PI*2)*radian \n\n ";
do{
cout << " Введите число Пи 3.24 или 3.141592 | Enter the number PI 3.24 or 3.141592 : \n";
cin >> PI;
cout << " Введите радиан 55.555555 или 57.295779 | Enter the radian 55.555555 or 57.295779 : \n";
cin >> radian;
degreece = (PI * 2) * radian;
if (degree != degreece) {
cout << " Неверно, должно быть 360° , результат :" << degreece << " \n ";
cout << " Wrong, it should be 360° , the result :" << degreece << " \n ";
}
else if (degree == degreece) {
cout << " Верно, должно быть 360° , результат :" << degreece << " \n ";
cout << " Right, it should be 360° , the result :" << degreece << " \n ";
}
} while (degree != degreece);
cout << " Федорченко Михаил Валерьевич PI= 3.24 rad = 55.555555\n\n";
return 0;
}