#include <iostream>
#include <cmath>
float f(float x);
int main()
{
float x;
std::cout << "Введите x: ";
std::cin >> x;
std::cout << "y=" << f(x);
}
float f(float x)
{
float a = 3.6F;
float b = 1.7F;
if (6 < x && x <= 8)
return (exp(a*x) + exp(-b*x)) / 2;
else if (x <= 6)
return sin(a*x) + 2;
else
return pow(cos(b*x), 2);
}
<span>mas = [int(i) for i in input('Введите массив : ').split()]
mas.sort()
print(mas)
for i in mas:
if mas.count(i) == 1:
print(i,' ')</span>
#include <iostream>
using namespace std;
int main() {
int s = 0, i = 20;
while(i < 100) {
s+=i;
i++;
}
cout << s << endl;
}
1. (51+40+22)-((32+11+8)-6)=68, остаются 2, которые ходят пить пиво вместо занятий!))
насчет второго, да... 30.