fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n,i,k;
  5. scanf("%d",&n);
  6. k=n;
  7. printf("%d!=%d",n,n);
  8. for(i=n-1;i>0;i--){
  9. k*=i;
  10. printf("x%d",i);
  11.  
  12. }
  13. printf("\n =%d",k);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5268KB
stdin
7
stdout
7!=7x6x5x4x3x2x1
  =5040