Code:
Using system;using system.collections.generic;using system.linq;using system.text;namespace Ticketing System {class Program { static void Main (string[] args) {console.title = "ticketing system"; string[,] Zuo = new string[9, 4]; for (int i = 0, i < 9; i++) {for (int j = 0; J < 4; J + +) { Zuo[i, j] = "with ticket" "; }}, string s = String. Empty; while (true) {System.Console.Clear (); Console.WriteLine ("\ n Simple Bus ticketing system" + "\ n"); for (int i = 0, i < 9; i++) {for (int j = 0; J < 4; J + +) { System.Console.Write (Zuo[i,j]); } System.Console.WriteLine (); } System.Console.Write ("Please enter as line number and column number (for example: 0,2) press Q to exit!" "); s = System.Console.ReadLine (); if (s = = "q") break; try {string[] ss = S.split (', '); int one = Int. Parse (Ss[0]); int, = Int. Parse (Ss[1]); Zuo[one, both] = "SOLD"; } catch (Exception) {Console.Write ("Exception Error! "); } } } }}
C # Simple Write ticketing system