Quick actions

cmd+k|ctrl+k

Navigation

Languages

№227

Snippet info

Language

Cpp

Visibility

public

Author

nxnxngh

Created

2018-10-28T09:40:57Z

Updated

2018-11-11T22:51:13Z

#include <iostream>
#include<cmath>
using namespace std;

   int main() {
int a, b, h;
	double F;

	cout << "Введите предел" << endl;
	cin >> a>> b;

	cout << "Введите шаг" << endl;
	cin >> h;


	while (a <= b)
	{
		F = tan(a);
		a += h;
	}
	cout<<" ____________________"<<endl<<"|    Х    |\t"<< a <<"    |"<<endl<<"|_________|__________|"<<endl<<"|  F(x)   | "<< F <<" |"<<endl<<"|_________|__________|"<<endl;

	return 0;
}
INFO