Created
July 29, 2019 09:57
-
-
Save glowing713/bcd281c10ec872596f4bc32bcaed7a38 to your computer and use it in GitHub Desktop.
백준 10872번 팩토리얼
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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