How to take input?

hello sir
into the code part…when we are taking input…we are using a while loop. and in the condition part we use “scanf” to take input and “EOF” .

how these terms works ?
please explain

@r_kumar_17 we are not given the number of elements so we are reading input till the input file ends. EOF represents end-of-file. Scanf is just a method for reading input just like cin.