You are viewing a single comment's thread. Return to all comments →
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
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays Introduction
You are viewing a single comment's thread. Return to all comments →
there should be one more condition in the first while loop
otherwise, will be an infinit loop. thumps up, nice approach