>> while (reply,reply1,reply2,reply3,reply4!= "no")
that is not necessary. just create a for loop that counts from 0 to 5 -- no need to answer that question 5 times
for(int count = 0; count < 5; count++)
{
// blabla
}
there is no need for num1, num2 ... num5 either. just enter the numbers directly into the array. add this to the above loop
cin >> intarray[i];
intarray needs to be declared as an array of 6 integers, not 5
int intarray[6]
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,957 posts
since Aug 2005