![]() |
|
Count to 10 Before an Admin Posts! - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: General (https://sinister.ly/Forum-General) +--- Forum: The Lounge (https://sinister.ly/Forum-The-Lounge) +--- Thread: Count to 10 Before an Admin Posts! (/Thread-Count-to-10-Before-an-Admin-Posts) |
RE: Count to 10 Before an Admin Posts! - Anizeb - 07-22-2013 5. then lrn 2 code. :l RE: Count to 10 Before an Admin Posts! - Xiledcore - 07-22-2013 Code: #include <iostream>
using namespace std;
int sqrt(int a, int b)
{
for (b = 1; b*b <= a;) {
b = b + 1;
}
return b - 1;
}
int main()
{
int n = 36;
int n2;
cout << sqrt(n, n2) << endl;
system("PAUSE");
return 0;
}I know, I know... My sqrt function really does suck, but I'm not a math genius. Anyway, just didn't want to use math libraries. (Don't make fun of me!)
RE: Count to 10 Before an Admin Posts! - Love - 07-22-2013 Woooo 7 LEGGO! RE: Count to 10 Before an Admin Posts! - Anizeb - 07-22-2013 8 bbycakes. lrn2code tho, srs RE: Count to 10 Before an Admin Posts! - Sapientia - 07-22-2013
RE: Count to 10 Before an Admin Posts! - Blue - 07-22-2013 -1 Nao. Lets keep this going Sapientia. RE: Count to 10 Before an Admin Posts! - Xiledcore - 07-23-2013 (07-22-2013, 11:55 PM)Blue Wrote: -1 Nao. Lets keep this going Sapientia. Wait, is that possible? LOL 0 then i guess. RE: Count to 10 Before an Admin Posts! - Love - 07-23-2013 Wow, Admins hate us.. 1 -.- RE: Count to 10 Before an Admin Posts! - Xiledcore - 07-23-2013 Let's do this, Love! 2. RE: Count to 10 Before an Admin Posts! - Love - 07-23-2013 Sapi is a mean person he'll ruin it. 4. |