Arrays Introduction

  • + 1 comment

    there should be one more condition in the first while loop

    while(cin>>A[i++] and i<N);
    

    otherwise, will be an infinit loop. thumps up, nice approach