Ryan Gaterell

Ryan Gaterell

  • NA
  • 1
  • 1.2k

Sorting Output of Individual Integers C#

Jan 10 2013 3:16 PM
Hello,

I am having difficulties finding a solution to my problem...

I need to Create a console application that will ask the user to input 5 individually stored Integers ( I have labelled them Num1 to Num5). After input is collected I need to display these 5 numbers Ascending, I cannot use an Array (which would be so much easier) or list. I have everything done except for the sorting of these integers, I cant seem to wrap my head around it.

Ive thought about comparing all the integers but that would take to long and I'm sure there is another way to do it, maybe a for loop?

Any help is appreciated.

Thanks.



Answers (1)