Advertisement
elena_gjorgjioska

Untitled

Oct 20th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int n,x,proizvod,i;
  7. scanf("%d",&n);
  8. proizvod=1;
  9. for(i=1;i<=n;i++)
  10. {
  11. proizvod=proizvod*i;
  12. }
  13. printf("%d",proizvod);
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement