|
||||||||||||||||||||||||||||||
include <iostream>. using std::cin;. using std::cout;. using std::endl;. include <math.h>. double a, b, c, x, y;. setlocale(LC_ALL, );. cout << Ââåäèòå x: ;. cin >> ⇐ ПредыдущаяСтр 2 из 2 #include <iostream> using std::cin; using std::cout; using std::endl; #include <math.h> int main(int argc, char** argv) { double a, b, c, x, y; setlocale(LC_ALL, ""); cout << "Ââåäèòå x: "; cin >> x; cout << "Ââåäèòå y: "; cin >> y; a = ((pow(y, 3) - 9 / (x + 1) * y) + pow(cos(x + y), 2)); b = tan(abs(x) + 10) + sin(x); c = log(x - 16) + 5 * abs(x + y); cout << "Ðåóëüòàò: \t a = "<< a << std::endl; cout << "Ðåóëüòàò: \t b = "<< b << std::endl; cout << "Ðåóëüòàò: \t c = "<< c << std::endl; return 0;}
Тестовые значения
Задача №2 Текст программы на C++ #include <iostream> using std::cin; using std::cout; using std::endl; #include <math.h> int main(int argc, char** argv) { int a, b, c, x, y; setlocale(LC_ALL, ""); cout << "Введите x: "; cin >> x; a = x / 100; x = x % 100; b = x / 10; x = x % 10; c = x; y = a + b + c; cout << "Реультат: \t сумма = "<< y << std::endl; return 0; }
Тестовые значения.
Задача №3 Задача №4
|
||||||||||||||||||||||||||||||
|