Go: package main

import "fmt"

func main() {
	var n int
	fmt.Scan(&n)

	rs := 1
	for i := 1; i <= n; i++ {
		rs *= i
	}
	fmt.Println(rs)
}

C++: #include <iostream>
using namespace std;

unsigned int kaijo(int n) {
  unsigned int ans = 1;
  for(int i = n; i > 0; i--) {
    ans *= i;
  }
  return ans;
}

int main(void) {
  int n;
  cin >> n;
  cout << kaijo(n) << endl;
  
  return 0;
}

C++: #include <iostream>
#include <queue>
#include <stack>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <string.h>
#include <string>
#include <cmath>
#include <complex>
#include <map>
using namespace std;

#define rep(i,n) for(int i=0;i<int(n);++i)
#define ALL(v) (v).begin(),(v).end()
#define PB push_back
#define EPS 1e-8
#define F first
#define S second

static const double PI=6*asin(0.5);
typedef long long ll;
typedef complex<double> CP;
typedef pair<long long,int> P;
static const int INF=1<<24;

ll n;
ll ans;

int main(){
	cin>>n;
	ans=1;
	rep(i,n){
		ans*=i+1;
	}
	cout<<ans<<endl;
	
	return 0;
}

C++: #include<iostream>
#include<vector>
#include<algorithm>
#include<map>
#include<string>
#include<cmath>
#include<numeric>
using namespace std;


int main(void) {

  int ans = 1;
  int n;
  cin >> n;
  for(int i=1; i<=n; i++) ans *= i;
  cout << ans << endl;
  return 0;
}

C++: #include <stdio.h>

int main() {
    long long n = 0;
    long long result = 1;
    scanf("%d", &n);

    for (long long i = n; 1 < i; --i) {
        result *= i;
    }

    printf("%lld", result);

    return 0;
}

C++: //কী পেয়েছো তুমি, কী চেয়েছিলে তুমি.? হিসেবটা তোমার বড়ই গড়মিল...!!//
#include <bits/stdc++.h>
using namespace std;
#define INF 0x3F3F3F3F
typedef long long ll;
int main()
{
    int n;
    cin>>n;
    ll sum=1;
    for(int i=2;i<=n;i++){
        sum=sum*i;
    }
    cout<<sum<<endl;
}
/*
5 6
1 0
0 5
1 2
1 3
2 3
3 4
*/

C++: #include <iostream>
using namespace std;

int fact(int n){
  if(n==0||n==1) return 1;
  return n * fact(n-1);
}

int main(){
  int n;
  cin >> n;
  cout << fact(n) << endl;
  return 0;
}

C++: #include<cstdio>

int main() {
    unsigned long long tot = 1;
    int x;
    scanf("%d", &x);
    for (int i = 1; i != x + 1; i++) {
        tot*= i;
    }
    printf("%lld\n", tot);
    return 0;
}

C++: #include<iostream>
using namespace std;
long long int function(long long int n){
  if(n > 1)
    return n * function(n-1);
  else
    return 1;
}

int main(){
  long long int n;
  cin >> n;
  cout << function(n) << endl;
  return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
	int n;
	
	cin >> n;
	
	long result = 1;
	for (int i = 1; i <= n; i++){
		result *= i;
	}
	cout << result << endl;
	
	return (0);
}

C++: #include <iostream>

unsigned long long Factorial(int n)
{
	unsigned long long ans=n;
	while(--n>0)
	{
		ans *= n;
	}
	return ans;
}

int main()
{
	int n;
	std::cin >> n;

	std::cout << Factorial(n) << '\n';
}

C++: #include<cstdio>
using namespace std;

int ans = {1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800, 479001600, 6227020800. 87178291200, 1307674368000, 20922789888000, 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000};

int main(){
  int a;
  scanf("%d", &a);
  printf("%d\n", ans[a - 1]);
  return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
	int n,r=1;
	cin>>n;
	for(int i=1;i<=n;i++){
		r*=i;
	}
	cout<<r;
		
	return 0;
}

C++: #include<bits/stdc++.h>

using namespace std;

main(){
	int a;
	cin >> a;
	int b=0;
	long long c=a;
	int d=a;
	long long s=1;
	while(a > b+1){
		b=b+1;
		s=c*s;
		c=c-1;
	}
	printf("%lld\n",s);
}

C++: #include <iostream>
using namespace std;

int fact(int n)
{
	if(n == 0)
		return 0;
	if(n == 1)
		return 1;
	return n*fact(n-1);
}

int main()
{
	int n;
	cin >> n;
	cout << fact(n) << endl;
	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <iterator>
#include <functional>

#define REP(i,n) for(int i = 0; i < (n); ++i)
using namespace std;

long factorial(int n){
	return n == 0 ? 1 : n * factorial(n-1);
}

int main(){
	int n;
	cin >> n;
	cout<<factorial(n)<<endl;
	return 0;
}

C++: #include<iostream>
using namespace std;

int main()

{

    int num;
	unsigned long long int total=1;

    cout << "Please enter a number : ";
    cin >> num;

    for(int i=1; i<=num; i++)
    {
        total*=i;
    }

	printf("%llu", total);
	
    return 0;
}

C++: #include<stdio.h>

int main(void){

    int n,i;
    long long ans = 1;
    scanf("%d", &n);

    for(i = 1; i <= n; i++){
        ans *= i;
    }
    printf("%lld\n", ans);
    return 0;
}

C++: #include<iostream>
using namespace std;

int factorial(int n){
  if(n==0)return 1;
  else return n*factorial(n-1);
}

int main(){
  int n;
  cin >> n;
  cout << factorial(n) << endl;
  return 0;
}

C++: //Circumscribed Circle of a Triangle

#include<iostream>
#include<cstdio>
using namespace std;

int fac(int n){
    if(n == 0 || n == 1) return 1;
    
    return (n * fac(n -1));
}

int main(void){
    int n, res;
    
    cin >> n;
    
    res = fac(n);
    
    cout << res << endl;
    
    return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
    int n,i=2,t;cin>>t;n=t;
    for(;i<t;i++)n*=i;
    cout<<n<<endl;
}

C++: #include <iostream>
using namespace std;

int main()
{
 int x;
 long long int sum=1;
 while(cin>>x)
 {
 for(int i=1; i<=x; i++)
 {
 sum*=i;
 }
 cout<<sum<<endl;
}
return 0;
}

C++: #include <iostream>
int factorial(int n)
{
    if (n == 0) {
        return 1;
    } 
    else {
        return n * factorial(n-1);
    }
}
int main()
{
    int n;
    std::cin  >> n;
    std::cout << factorial(n) << std::endl;
}

C++: #include<iostream>
using namespace std;

int main() {
	int n, sum = 1;
	cin >> n;
	for (int i = 1;i <= n;i++) {
		sum = sum * i;
	}
	cout << sum << endl;

	return 0;}

C++: #include <iostream>
#include <algorithm>
#include <cstdlib>
using namespace std;

int kaijou(int);
int n;

int main(){
	cin >>n;
	cout << kaijou(n) <<endl;

	return 0;
}

int kaijou(int i){
	if(i == 0){
		return 1;
	} else {
		return i * kaijou(i-1);
	}
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <cstring>
#include <climits>
#include <cmath>
#include <cfloat>

using namespace std;

int num;
unsigned long int fac=1;

int main()
{
	cin >> num;
	
	for( int i = 1; i <= num; i++)
	{
		fac *= i;
	}
	
	cout << fac << endl;
	
	return 0;
	
}

C++: #include <iostream>

using namespace std;

void Solution()
{
    int n;
    
    cin>>n;
    
    long sum = n;
    
    for(int i = 0; i < n; i++)
    {
        sum = sum * (n - 1);
        n--;
    }
    
    cout << sum << endl;
    
    return;
}

int main()
{
    Solution();
    return 0;
}

C++: #include <iostream>
using namespace std;
int main() {
	int n; cin >> n;
	long long fac = 1;
	while (--n) {
		fac *= (n+1);
	}
	cout << fac << endl;
}

C++: //
//  main.cpp
//  kyougi
//
//  Created by 寺林 一旭 on 2018/08/27.
//  Copyright © 2018年 寺林 一旭. All rights reserved.
//

#include <iostream>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <map>
using namespace std;
int main() {
    
    int num;
    int inputValue;
    vector<int> list;
  
    while(cin >> num) //getline(cin, num))
    {
        int ans=1;
        for( int i = 1; i <= num ; i++)
        {
            ans = ans * i;
        }
        cout << ans << endl;
      //  cout << digit << endl;
   //     cout << a-b <<endl;
    }
  
    
    return 0;
}

C++: #include <cstdio>
#include <cstring>
#include <algorithm>
#include <string>
#include <cmath>
#include <stack>
#include <vector>


using namespace std;

int main()
{
	int n;
	scanf("%d", &n);
	long long res = 1;
	for (int i = 2; i <= n; ++i)
		res *= i;
	printf("%lld\n", res);

	return 0;
}

C++: #include <iostream>

using namespace std;

int main(void) {
	int i;
	unsigned long long in;

	cin >> in;
	for(i=in;i>1;i--) {
		in*=i-1;
	}
	cout << in << endl;

	return 0;
}