Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Reverse roots (http://www.go4expert.com/forums/reverse-roots-t2670/)

Yogicena 23Jan2007 20:43

Reverse roots
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
and my output should be
can anybody give me solution in c programming

DaWei 24Jan2007 00:17

Re: Reverse roots
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 29Jan2007 18:23

Re: Reverse roots
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

All times are GMT +5.5. The time now is 12:27.