Squre root of a number

what is the issue with this code?
#include
using namespace std;
int main(){
// To find sqrt of a number
int number, start=0,i=0,p;
cout<<"Enter the no to find sqrt with precision ";
cin >>number>>p;
// to find the whole number
int div=1;
while(i<p){

	while(start*start<=number){
		start=start+div;
	}
	start=start-div;
	div=div/10;
}
cout<<start;
i=i+1;

}

@Ankit554
You need to use float data type for div.

thanks but there was also problem with while loop

@Ankit554
Could you let me know the particular problem you are facing so I can properly help you out ?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.