Shell program to display list of given 10 numbers in descending order?

OK , let me get this straight - after choosing Odd or Even you must display is Ascending or Descending order. I suggest you store the results in an array first before displaying. Then according to the order display as required.

Also no need to check for odd or even numbers.. Use following logic... Assuming you r printing all numbers between the start and end if (z==1) i=2 elseif (z=0) i=3 index=0 for (;i==y;i+=2) { resultindex=i index } at this point you have a array of odd / even numbers in ascending order now disply as required if ascending go from first to last item in array otherwise go from last to first item if (a==1) //ascending { for(i=0;i<=(y/2);i++) printf("%d ",resulti) } elseif(a==0) //descending {.

You are already using conditional expressions. What is the problem? == > = <=!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions