Code:
int sqrt(int root){
	int i = 0;
	bool done = false;

	while(!done){
		i++;
		if ((i*i) == root){done = true;}
		else if (i == root){cout<<"No whole root";done = true;}
	
	}

return i;

}
ok, this works with whole numbers, but i need something that will work with everything. Any ideas?