fork download
  1. #include <stdio.h>
  2. long fact(int n)
  3. {
  4. long f;
  5. if(n==1||n==0) f=1;
  6. else f=n*fact(n-1);
  7. return f;
  8. }
  9. int main(void) {
  10. // your code goes here
  11. long i;
  12. int sum=0,j;
  13. for(j=1;j<=20;j++)
  14. {
  15. sum=sum+j;
  16. }
  17. printf("%d",sum );
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
210