Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- main()
- {
- double n,il=1,im=1,ilor,j=2,c=-3;
- cout << "Podaj liczbe ciagu ktora cie interesuje: ";
- cin >> n;
- for (int i=1 ; i<=n ; i++ , j+=0.5, c*=0.1 )
- {
- il*=j;
- im*=c;
- }
- ilor=il/im;
- cout << "Liczba ciagu, o ktora prosiles wynosi: " << ilor << endl;;
- cout << "Licznik: " << il << endl;
- cout << "Mianownik: " << im << endl;
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement