Reverse roots

Newbie Member
23Jan2007,20:43   #1
Yogicena's Avatar
I came across a problem where i have to accept N number of fields and print the square root of all these numbers in reverse order.I may be given numbers which may be separated or given in sequential order.For example My input willbe
36
0
4
and my output should be
6.0000
0.0000
2.0000
can anybody give me solution in c programming
Team Leader
24Jan2007,00:17   #2
DaWei's Avatar
Reverse order would be 2, 0, 6 would it not? Typically, we don't serve up code. It is in the best interests of the questioner to produce code and ask for help with any problems.

Asking for help is a fine art when done well; clear information is key. Please be sure and read the "Before you make a query" thread, if you haven't already. Welcome to the forum.
Go4Expert Member
29Jan2007,18:23   #3
friendsforniraj's Avatar
hey use two for loops
one from i=0 to 2
this ones take d input
n another for loop from i=2 to 0
this ones calculates and print the square root