TOPIC

Runtime Error why?

naannha asked 3 years ago

include

int main(){ int X[10],i; for(i=0;i<10;i++){ scanf("%d",&X[i]); if(X[i]<=0){ X[i]=1; } printf("X[%d] = %d\n",i,X[i]); } }

This topic was solved and cannot recieve new replies.

  • feodorv replied 3 years ago

    Is it "C"? Then you should return 0 from the main routine.