take square root of number if it is a digit then that digit is the answer otherwise round off that number to the nearest digit
On Sun, Aug 7, 2011 at 7:41 AM, Nikhil Veliath <[email protected]> wrote: > write a recursive code to print the nearest square of a number.... > > eg if no is 27 > > the nearest square is 5.... > > it should also take care of large nos... > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- *UTKARSH SRIVASTAV CSE-3 B-Tech 3rd Year @MNNIT ALLAHABAD* -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
