77 976
Assignments Done
Successfully Done
In August 2019

Answer to Question #2548 in C# for ch azan

Question #2548
Define a console application to display all the arguments passed to command line while running the application. The user can pass any number of arguments that should be displayed. Use length property of array and for-next loop. If there are no arguments in command line display message ‘No Arguments’
Expert's answer
using System;

namespace cmndl
class Program
static void Main(string[] args)
if (args.Length == 0)
Console.WriteLine("No Arguments");
Console.WriteLine("List of command line arguments:");
for (int i = 0; i < args.Length; i++)
Console.WriteLine("{0}. {1}", i+1, args[i]);


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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions