Advertisement
plugin23

prog3.3

Mar 17th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.     int n, a;
  5.     scanf_s("%d", &n);
  6.     a = 1;
  7.     for (int i = 1; i <= n; i++) {
  8.         a = a * i;
  9.     }
  10.     printf("%d\n", a);
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement