WAP find square root of any number (without using sqrt() )?

Answer Posted / avinash

private int sqrt()
{
int n = console.readline();

n = n*n;

return n;
}

Is This Answer Correct ?    5 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a constructor and a destructor?

707


What is inheritance in oop?

682


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1749


What is difference between polymorphism and inheritance?

704


What is polymorphism programming?

694






What does sksksk mean in text slang?

1688


to find out the minimum of two integer number of two different classes using friend function

1740


Why oops is important?

687


What is difference between oop and pop?

717


What is stream in oop?

939


Is this job good for future? can do this job post grduate student?

1794


How do you use inheritance in unity?

680


What are two types of polymorphism?

694


When not to use object oriented programming?

671


What is a superclass in oop?

788