Question: Program C# Im trying to get this program to pause at the end and say press any key to contuine instead of closing immediately after
Program C#
Im trying to get this program to pause at the end and say press any key to contuine instead of closing immediately after code has been ran.
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Collections.Generic;
public class Program { public static void Main(string[] args) {
List
Console.WriteLine("Costumers information: "); foreach (var item in items) { Console.WriteLine(UpperCaseMethod(item.ToLower())); }
} public static string UpperCaseMethod(string input) { if (String.IsNullOrEmpty(input)) throw new ArgumentException("ARGH!"); return input.First().ToString().ToUpper() + input.Substring(1); }
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
