Reverse roots

Yogicena's Avatar, Join Date: Jan 2007
Newbie Member
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
DaWei's Avatar, Join Date: Dec 2006
Team Leader
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.
friendsforniraj's Avatar, Join Date: Nov 2006
Go4Expert Member
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