Code not working

Dear friends
Please can some one point out the error in the following, I am not able to run this in Dev.
1
2
3
4
5
6
7
8
9
10
11
  #include<iostream>
using namespace std;

int main ()
{
	int	n=99;
	while (n != 0 )
		cin >> n;
	cout << endl;
	return 0;
}
closed account (E0p9LyTq)
What are you expecting the program to do?

Are you getting compile errors? Run-time errors?

The program keep asking for input until the user enters 0 (zero). The program then prints out a blank line and terminates.
Thanks dear I got the reply.
Topic archived. No new replies allowed.