Josif_tepe

Untitled

Dec 6th, 2025
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4.     int n,i,suma;
  5.     cin>>n;
  6.     i=0;
  7.     suma=1;
  8.     for(int i=1;i<=n; i++ ){
  9.         suma*=i;
  10.        
  11.        
  12.     }
  13.     std::cout<<suma<<endl;
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment