fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int n=5,sum=1;
  6. for(int i=1;i<=n;i++){
  7. sum*=i;
  8. }
  9. printf("%d",sum);
  10.  
  11. return 0;
  12.  
  13. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
120