|
-
Jul 27th, 2014, 01:53 PM
#1
Thread Starter
New Member
How to order array results??
So this app takes in prices of fuels and miles per gallons to find how much each car costs per annum.
Because I want to calculate more than one car at once, I used an array for the cars called Car(10).
The way I have done this is in a loop that keeps going as long as "i" is less than 11 and i = i+1 after each loop.
Each result is under Car(i). How would I order the cars in order of price displayed from their numbers (they don't have names) and displaying the prices also.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|