Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab5(247)

Snippet info

Language

Cpp

Visibility

public

Author

misha127831

Created

2018-12-20T16:56:23Z

Updated

2018-12-20T16:56:23Z

#include<iostream>
#include<cmath>
 
int main()
{
    using namespace std;
    double a, b, h;
    cin >> a;
    cin >> b;
    cin >> h;
 
 
    cout << "F(x) = ctg x + 1" << endl;
    for (double i = a; i <= b; i += h)
    {
        cout << "F(" << i << ") = " << 1 / tan(i) + 1 << endl;
    }
    return 0;
}
INFO