SHARE
TWEET

Untitled

a guest Dec 8th, 2019 77 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top