SHARE
TWEET

Untitled

a guest Dec 11th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ///ДСНП, която извежда N! = 1*2*3…..*N
  2. #include <iostream>
  3. using namespace std;
  4. int main(){
  5.  
  6.     long long f=1, input, counter=1;
  7.     ///vuvejdame inputa
  8.     cin>>input;
  9.     ///suzdavam cikul v koito sravnqvam broqch i input
  10.     while(counter<input+1){
  11.  
  12.     f = f*counter;
  13.     counter++;
  14.     }
  15. cout<<"N!= "<<f<<endl;
  16.  
  17.  
  18. return 0;
  19. }
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
 
Top