Page 1 of 1

CHAPTER 9 - ON PROGRAMMING LAB HANDS-ON - IST 51/ST551 BY: MS ROSITA Output using System; using System.Collections.Gener

Posted: Fri May 20, 2022 11:23 am
by answerhappygod
Chapter 9 On Programming Lab Hands On Ist 51 St551 By Ms Rosita Output Using System Using System Collections Gener 1
Chapter 9 On Programming Lab Hands On Ist 51 St551 By Ms Rosita Output Using System Using System Collections Gener 1 (70.71 KiB) Viewed 34 times
CHAPTER 9 - ON PROGRAMMING LAB HANDS-ON - IST 51/ST551 BY: MS ROSITA Output using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Chapter_7_Solution_4 { class Program nono tmp/ORB20BKSWG.exe Enter array length: 7 Enter 0 element. 8 Enter 1 element: 6 Enter 2 element : 4 Enter 3 element: 5 Enter 4 element: 3 Enter 5 element: 9 Enter 6 element: 3 0. static void Main(string[] args) { int count = 1, tempCount = 1, number = 0; Console.Write("Enter array length: "); int length = Int32.Parse(Console.ReadLine(); int[] art = new int[length]; for(int i = 0; i<arr.length; i++) Console.Write("Enter {0) element, i); arr = int32.Parse(Console.ReadLine(); } for (int i = 0; i < arr.Length - 1; i++) { if (arr == arrſi - 1]) tempcount++; else tempcount = 1; if (tempCount > count) { count = tempCount: number = arr [1]: } = for (int i = 0; i < count; i++) Console.Write("{0}," number);