Добавил:
elik1234
elik.kondrashov@mail.ru
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:1 семестр (Леканов) / лаба2 В14 / 3
.txt#include <iostream>
#include <math.h>
#include <iomanip>
using namespace std;
int main()
{
double x, y, z, z1, z2;
cout.precision(5);
cout << setw(10) << "x=" << "\t" << setw(10) << "y=" << "\t" << setw(10) << "z=" << endl;
x = 1.2;
while (x <= 2.8)
{
y = -0.5;
while (y <= 0.1)
{
z1 = y*pow(x,1./2);
z2 = sin(1.47)/x;
if (z1 > z2)
z = z2;
else
z = z1;
cout << setw(10) << x << "\t" << setw(10) << y << "\t" << setw(10) << z << endl;
y += 0.45;
}
x += 1.3;
}
return 0;
}