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