what is meant by EOF? It is written after scanning n i.e. the no. of mixtures
About a line of code in problem
EOF is end of file
when input is completed loop will also completed
C++ provides a special function, eof( ), that returns nonzero (meaning TRUE) when there are no more data to be read from an input file stream, and zero (meaning FALSE) otherwise.
Pls can you explain me that statement where inside while condn we are scanning input n and thn checking whether it is != EOF.