Help me out in this C++ with the while loop
When you run a C++ program, what will appear on the screen after following statements are executed?
int a=0,i=0;
while(a<=10){ a=a+i i=i+2; }
cout<<a<<endl;
The answer should be 30 but how come?








