Advertisement
NuquernaNarsil

1_23_e__33_podr

Sep 30th, 2013
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3.  
  4. using namespace std;
  5. main()
  6. {
  7. double n,il=1,im=1,ilor,j=2,c=-3;
  8. cout << "Podaj liczbe ciagu ktora cie interesuje: ";
  9. cin >> n;
  10.     for (int i=1  ; i<=n ; i++ , j+=0.5, c*=0.1 )
  11.     {
  12.         il*=j;
  13.         im*=c;
  14.     }
  15.        
  16.        
  17. ilor=il/im;
  18.  
  19. cout << "Liczba ciagu, o ktora prosiles wynosi: " << ilor << endl;;
  20. cout <<  "Licznik: "  << il << endl;
  21. cout  << "Mianownik: " << im << endl;
  22.  
  23.  
  24. getch();
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement