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<bits/stdc++.h>
using namespace std;
int n;
int dfs(int i){
  if(i==1)
    return 1;
  else if(i==0)
    return 0;
  return i*dfs(i-1);
}
  int main(){  
  cin>>n;
  cout<<dfs(n)<<endl;
  return 0;
  
}

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

long long fact(long long a){
  if(a<=1LL)return 1;
  return a*fact(a-1);
}

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

C++: #include <iostream>

using namespace std;

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

C++: #include <cstdio>
#include <cmath>
int main()
{
        int n,i,fac;
        scanf("%d",&i);
        fac=1;
        for(;i>1;i--)
                {
                        fac=fac*i;
                }

        printf("%d\n",fac);

        return 0;

}

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

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

int main(void)
{
	int n;

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

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

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

C++: #include <iostream>

using namespace std;

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

C++:  
 #include<iostream>
 #include<stdio.h>
 #include<string>
 #include<math.h>
 #include<iomanip>
 #include<algorithm>
 #include<string.h>
 #include<cctype>
 #include<map>
 #include<set>
 #include<vector>
 #include<sstream>
 #include<stack>
 
 using namespace std;
  
 int main()
 {
   long long int n;
   long long result=1;
   cin>>n;
   while(n>1)
   {
     result*=n;    
     n--;
   }
   cout<<result<<endl;
   //while(1);      
   return 0;    
 }

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

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

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

long long functorial(long long ll){
  if(ll<=1) return 1;
  else return functorial(ll-1)*ll;
}

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

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

int main()
{
 int n;
 cin >> n;
 long long int ans;
 for(int i=1; i<=n; i++) ans *= i;

 cout << ans << '\n';

 return 0;
}

C++: #include <iostream>
#include <cstdint>

int main()
{
	std::uint32_t n;
	std::cin >> n;
	std::uint64_t factorial = 1;
	while (n > 0) {
		factorial *= n--;
	}
	std::cout << factorial << std::endl;
	return 0;
}

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

using namespace std;

typedef long long ll;
typedef pair<ll, ll> P;

#define MOD 1000000007
#define REP(i, N) for (int i = 0; i < N; ++i)
#define REP1(i, N) for (int i = 1; i <= N; ++i)
#define RREP(i, N) for (int i = N - 1; i >= 0; --i)
#define ALL(a) a.begin(), a.end()

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

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

int main(void){
  unsigned long n;
  cin >> n;
  for(int i = n; i > 2; i--){
    n = n * (i - 1);
  }
  cout << n << endl;
  return 0;
}

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

int main()
{
	int n;
	cin >> n;
	long long ans = 1;
	do
	{
		ans *= n;
	} while (--n);
	cout << ans << endl;
	return 0;
}

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

int main(){
  int n,i,ans;

  while(cin >> n){

  ans=1;
  for(i=0;i<n;i++){
    ans=ans*(n-i);

  }
 
    cout << ans << endl;
  }

}

C++: #include <iostream>
#include <limits.h>

using namespace std;

void solve()
{
	unsigned long long int ans = 1;
	int n;
	cin >> n;
	for(int i = 1; i <= n; ++i)
	{
		ans *= i;
	}
	cout << ans << endl;
}

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

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

using lint = long long;

lint factorial(lint n){
    if(n == (lint)0){
        return (lint)1;
    }

    return n * factorial(n - 1);
}

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

    return 0;
}

C++: #include<stdio.h>
int fact(int n){
    if(n>1)
    return n*fact(n-1);
    return 1;
}
main(){
    int x;
    scanf("%d",&x);
    printf("%d\n",fact(x));
}

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

int main(void){
  int n;
  cin >> n;
  for(int i = n; i > 2; i--){
    n = n * (i - 1);
  }
  cout << n << endl;
  return 0;
}

C++: #include <iostream>
using namespace std;
int main( void )
{
	while ( !cin.eof() )
	{
		int n;
		cin >> n;
		if ( cin.eof() )
			break;

		int f = 1;
		for ( int i = 2; i <= n; i++ )
		{
			f *= i;
		}

		cout << f << endl;
	}

}

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

int main() {
	int n; scanf("%d",&n);
	long long x = 1;
	while(n>1)x*=n--;
	printf("%lld\n",x);
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;

int main() {
	ios :: sync_with_stdio(false);
	int n; cin >> n;
	long long ans = 1;
	for(int i = 1; i <= n; i ++)
		ans *= i;
	cout << ans << '\n';
	return 0;
}

C++: #include<iostream>

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

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

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

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

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

C++: #include <iostream>
#include<string>
#include<math.h>
using namespace std;

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

C++: #include<iostream>
#include<stdio.h>
using namespace std;
long long factorial(int D) {
	return (D > 0 ? D*factorial(D - 1) : 1);
}
int main() {
	int n;
	cin >> n;
	cout << factorial(n) << endl;
	return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
typedef long long ll;
int main(){
    ll n,ans=1;
    cin >> n;
    while(n--){
        ans*=n;
    }
    cout << n << endl;
    return 0;
}

C++: #include <stdio.h>
int main()
{
    int n, count;
   unsigned long long int factorial=1;
   while(scanf("%d",&n)==1)
{
     if ( n== 0)
     printf("1\n");
     else
     {
         factorial=1;

         for(count=1;count<=n;++count)
     { factorial*=count;}
      printf("%llu\n",factorial);
      }

      }
      return 0;
       }

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

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

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

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

int main(){
  int n,c=1;
  cin>>n;
  if(n==0)cout<<0<<endl;
  else{
    for(int i=n;i>0;i--)
      c*=i;
    cout<<c<<endl;
  }
  return 0;
}

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

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

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

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

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