Найти значение функции , если x изменяется от 3 до -4 с шагом -0,5, применяя цикл с постусловием
#include #include #include using namespace std; int main() { setlocale(LC_ALL, "RUSSIAN"); cout << "y=(1+sin x)/(2-x)" << endl;<br> cout << setw(5) << 'x' << setw(10) << 'y' << endl;<br> float x = 3; float y; do { y = (1 + sin(x)) / (2 - x); cout << setprecision(2) << setw(5) << x << setw(10) << y << endl;<br> x = x - 0.5; } while (x >= -4); system("pause"); }
нужен Pascal