Created
September 25, 2020 20:10
-
-
Save tetraFour/59c23f14c2440bf82fdd0258569e8d24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <math.h> | |
int main() | |
{ | |
std::cout<<"Hello World"; | |
double x,c,m,d, pi; | |
pi = 3.14; | |
std::cout << "Vvedite chislo x \n"; | |
std::cin >> x; | |
std::cout<<"Vvedite chislo c \n"; | |
std::cin >> c; | |
if (x > c) { | |
m = sin(c * pi / 180); | |
std::cout<<"Vashe chislo: " << m << "\n"; | |
} else { | |
d = sin(x * pi / 180); | |
std::cout<<"Vashe chislo: " << d << "\n"; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment