Need some help with a number sorting program. C

edited December 2016 in Beginner C/C++

Hi, I need to sort an array of numbers for an assignment, I've done half of it where I sort them in ascending and descending order, but I'm stuck at doing the same while disregarding whether the number is positive or negative(for example: -6,4,-9,-2 should come out as -2,4,-6,-9).
Any thoughts?

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion