|
-
Apr 21st, 2009, 09:31 PM
#1
Thread Starter
New Member
How do I display numbers back from least to greatest?
I am in a programming class, and am one of the best students in it, I even went to a state programming contest. One of the problems was to enter 6 race times in a Console Application and have it display the times back in order of which were fastest and their place
such as
imput
11
15
12
8
22
18
output
8 1st
11 2nd
12 3rd
15 4th
18 5th
22 6th
I really dont have any idea where to start. So far I have this done
Dim a1 As String
Dim a2 As String
Dim a3 As String
Dim a4 As String
Dim a5 As String
Dim a6 As String
Console.WriteLine("Enter Race Times")
a1 = Console.ReadLine
a2 = Console.ReadLine
a3 = Console.ReadLine
a4 = Console.ReadLine
a5 = Console.ReadLine
a6 = Console.ReadLine
any suggestions I really need to figure this out.
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
|