Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
139 B
1
Indexable
Never
#include<iostream>
using namespace std;
int main(){
	int a,b,c;
	cin >> a;
	b = a;
	c=1;
	while (b>0){
		c = c*b;
		b-=1;
	}
	cout << c;	
}