Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- int main ()
- {
- int i;
- double x[10];
- x[0] = 1;
- x[1] = 0.3;
- for (i = 2; i <= 9; ++i)
- {
- x[i] = (i + 2) * x[i - 2];
- cout << "x[" << i << "] = " << x[i] << endl;
- }
- getch ();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement