need some Code help please

I need help writing a loop function. I need to use a while loop to find the smallest integer (n) so that n*2 > 12,000.
(n*2 is exponential (pow function))

expl.

109 x 109 = 11881

110 x 110 = 12100

Therefore, 110 is the smallest value where n2 > 12000. But I need to use a loop to find the solution and I'm just not quite sure how to code this. Could someone please help me? Thanks in advance
Uh, it's just:
1
2
int n=0;
while (n*n<=12000)n++;


That seems pretty obvious to me, though. I recommend reading about loops again (if "again" is even applicable).
But what would the entire code be? Like the header file names and etc. Thanks
Reading the first few pages of your C++ book will tell you all you need to know.
Topic archived. No new replies allowed.