fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5.  
  6. int a[] = {1, 2, 3, 4, 5};
  7. int x, n = 5;
  8.  
  9. putchar('<');
  10.  
  11. for ( x = 0; x < n; x++ )
  12. {
  13. if (x > 0)
  14. putchar(' ');
  15. printf("%d", a[x]);
  16. }
  17.  
  18. putchar('>');
  19.  
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
<1 2 3 4 5>