lab5 (248)

Run Settings
LanguageC++
Language Version
Run Command
#include<iostream> #include<cmath> using namespace std; int main() { int a, b, h, x; double F; cout << "Введите предел а и b " << endl; cin >> a >> b; cout << "Введите шаг h" << endl; cin >> h; x = a; while (x <= b) { F = sin(x) + 0.5*cos(x); x += h; } cout << "\tРезультат - " << x; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines