Guest User

Untitled

a guest
Dec 8th, 2019
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void silnia(int n) {
  2. long long int b = 1;
  3. cout << "\nn" << " " << "n!" << endl;
  4. for(int i=0; i<=n; i++) {
  5. if(i==0) b = 1;
  6. else b *= i;
  7. cout << i;
  8. if(i<10) cout << " ";
  9. cout << " " << b << endl;
  10. }
  11. cout << "\nSilnia z n = " << n << " wynosi: " << b << "\n\n";
  12. }
RAW Paste Data