C/C++ code using the Stanford library to computer the average of certain number of user defined integer values. Here, the user does not know that how many numbers he/she wants to use to compute the average.
So, we use while loop.
Further we introduce the classic problem of loop in a half.