Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int n;
- int x;
- int res;
- float *a = new[n];
- cout << "Enter n,:";
- cin >> n;
- cout << "Enter x:";
- cin >>x ;
- for (int i = 0; i < n; ++i)
- {
- a[i] = (1 / (i + 1)) + sqrt(abs(x));
- }
- res = (i+1);
- for (i = 1; i <= n; i++)
- {
- res = res * i;
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement