Skip to content

Instantly share code, notes, and snippets.

@glowing713
Created July 29, 2019 09:57
Show Gist options
  • Save glowing713/bcd281c10ec872596f4bc32bcaed7a38 to your computer and use it in GitHub Desktop.
Save glowing713/bcd281c10ec872596f4bc32bcaed7a38 to your computer and use it in GitHub Desktop.
백준 10872번 팩토리얼
#include <iostream>
using namespace std;
int main(void){
int input = 0, result = 1;
cin >> input;
for(int i = 1; i <= input; i++){
result *= i;
}
cout << result << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment