My question is how do I put the numbers in descending order this is the question: VB.NET programming language to write a program to print the value of a series of numbers from 0 to 9 in descending order.

This is what I have:

Module Module1

    Sub Main()
        Dim num1 As Integer = 0
        Do While num1 <= 9
            Console.WriteLine(num1)
            num1 += 1
        Loop
        Console.ReadLine()
    End Sub

Thanks

Simply reverse your loop. Set num1 to 9 and subtract from num1 in each loop. And change your loop criteria so it stops at zero.
That should be enough hints to help you:)

nice ans hericles :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.