Answer to Question #312718 in C# for kun

Question #312718

Write a program to display the numbers 8 down to 0 underneath one another, making use of a loop


1
Expert's answer
2022-03-16T14:48:42-0400
using System;

namespace number8_0
{
    class Program
    {
        public static void Main(string[] args)
        {
            for (int i=8; i>=0; i--)
                Console.WriteLine("{0}", i);
            Console.WriteLine();
            Console.Write("Press any key to continue . . . ");
            Console.ReadKey(true);
        }
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS