Read integers from the input file until the value zero is read. Then print the number in the file just before the first zero value. Sample input data might be
3
7
2
10
0
9
4
5
Sample output for this input data is
Input data: buffer 3
Input data: buffer 7
Input data: buffer 2
Input data: buffer 10
Input data: buffer 0
The last number before the first zero is 10
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here