Задача 1:
#include <iostream>
int main()
{
double x, y;
std::cin >> x;
if (x >= 2) y = sqrt(3 * x + 4);
else y = x * x * x * x * x - abs(4 * x);
std::cout << y;
return 0;
}
Задача 2:
y = (x*x*(2*x+8))/(3+2*x);
Задача 3:
double z,b;
std::cin >> b;
if (b > 7) z = b * b * b;
else z = b - 9;
std::cout << z;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Задача 1:
#include <iostream>
int main()
{
double x, y;
std::cin >> x;
if (x >= 2) y = sqrt(3 * x + 4);
else y = x * x * x * x * x - abs(4 * x);
std::cout << y;
return 0;
}
Задача 2:
#include <iostream>
int main()
{
double x, y;
std::cin >> x;
y = (x*x*(2*x+8))/(3+2*x);
std::cout << y;
return 0;
}
Задача 3:
#include <iostream>
int main()
{
double z,b;
std::cin >> b;
if (b > 7) z = b * b * b;
else z = b - 9;
std::cout << z;
return 0;
}
Вопрос:
https://znanija.com/task/36304845?utm_source=android&utm_medium=share&utm_campaign=question