Command Line

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Command Line as PDF for free.

More details

  • Words: 78
  • Pages: 1
2. Write a program to demonstrate Command Line Arguments in C# using System; using System.Collections.Generic; using System.Text; namespace LABPROGRAMS { class CMDLINE2 { static void Main(string[] args) { int n, i; Console.WriteLine("PROGRAM TO IMPLEMENT COMMAND LINE ARGUMENTS\n\n"); if (args.Length == 0) { Console.WriteLine("NO ARGUMENTS SUBMITTED"); Console.ReadLine(); } for (i = 0; i < args.Length; i++) { n = int.Parse(args[i].ToString()); Console.WriteLine("The square of the given input value {0} is :{1}", n, n * n); } Console.ReadLine(); } } }

Related Documents

Command Line
June 2020 8
Xp Command Line
December 2019 29
Geo Precessing Command Line
November 2019 22
Vmware Command Line
October 2019 19