Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- // Система уравнений
- int main() {
- setlocale(LC_ALL, "Russian");
- double x;
- std::cout << "Введите X: ";
- std::cin >> x;
- if (x >= 20 && x < 100) {
- std::cout << sin(x) + cos(x) << std::endl;
- } else if (x > 5 && x < 20) {
- std::cout << sqrt(x - 8) << std::endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment