Скачиваний:
8
Добавлен:
12.01.2019
Размер:
543 б
Скачать
#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;
}
Соседние файлы в папке лаба2 В14