fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a[11];
  5. for(int i=0;a[i]!=NULL;i++)
  6. {
  7. scanf("%d",a+i);
  8. }
  9. for(int i=0;a[i]=NULL;i++)
  10. {
  11. printf("%d\n",a[i]);
  12. if(a[i]==0)break;
  13. }
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 4556KB
stdin
7 4 2 3 0 1 5 6 9 10 8
stdout
Standard output is empty