Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4. #include <ctime>
  5.  
  6. int main(){
  7.  
  8. int i;
  9. int n;
  10. int s=1;
  11. printf("wprowadz liczbe: ");
  12. scanf("%d",&n);
  13.  
  14. for(i = 1;i<=n;i++)
  15. {
  16. s=s*i;
  17.  
  18.  
  19. }
  20. printf("Silnia %d",s);
  21. return s;
  22.  
  23.  
  24.  
  25.  
  26. system ("pause");
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement