I'm a little rusty on this part of Math(s)
But given X, let X = 13. And I want to find the next square number, which is 16.
So how would I do that?
Would this work?
int x = 13; int y, z, w; y = Math.Sqrt(x); z = Math.Ceiling(y); w = Math.Pow(z, 2);
Where "w" would now by 16?
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.