Ans not showing after compilation of code. Plz check for any mistakes.
#include
using namespace std;
int main() {
float n,p;
cin>>n>>p;
float ans = 0;
float inc = 1;
float times = 0; // p+1 times for p places
while(times<=p);{
while(ans*ans <=n){
ans = ans + inc;
}
ans = ans - inc;
inc = inc / 10;
times = times + 1;
}
cout <<ans<< '\n';
return 0;
}