Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int n, a;
- scanf_s("%d", &n);
- a = 1;
- for (int i = 1; i <= n; i++) {
- a = a * i;
- }
- printf("%d\n", a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement