Update appNew update is available. Click here to update.
About
I'm a passionate student who loves solving problems with technology. I'm constantly learning and enjoy creating cool things with code. I'm excited to grow as a coder and collaborate on interesting pro...
Brindavan College of Engineering 2026
Java - Default language
My Stats
EXP gained
yellow-spark
4850
Level
5 (Champion)
Community stats
Discussions
0
Upvotes
0
Know more
160
Total problems solved
150
Easy
9
Moderate
1
Hard
0
Ninja
Jan Jan Feb Feb Mar Mar Apr Apr May May Jun Jun Jul Jul Aug Aug Sep Sep Oct Oct Nov Nov Dec Dec

Current streak:

0 days

Longest streak:

5 days

Less

More

Achievements
3
Ronin
Topics
Arrays
Math
Sorting
Discussions
100% Better
Interview problems

#include <bits/stdc++.h> 

 

#include <math.h> 

#include <cmath> 

 

double squareRoot(long long n, int d) 

{

    double res = sqrt((double)n);

    int flr = floor(res);

    res = res - flr;

    res = res*pow((double)10 ,(double) d);

    res = floor(res);

    res = flr+ (res * pow((double)10 , (double)(-d)));

    return res;

}

profile
Rakesh_46
Published On 29-Oct-2023
18 views
0 replies
0 upvotes