Skip to content

Instantly share code, notes, and snippets.

@tetraFour
Created September 25, 2020 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tetraFour/59c23f14c2440bf82fdd0258569e8d24 to your computer and use it in GitHub Desktop.
Save tetraFour/59c23f14c2440bf82fdd0258569e8d24 to your computer and use it in GitHub Desktop.
#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