Question: in the following program, Rewrite the for loops using foreach loops instead. using System public static class ForEachExamples { public static void Main() double marsal

in the following program, Rewrite the for loops using foreach loops instead. using System public static class ForEachExamples { public static void Main() double marsal = 0; int employee Salary = new int [5] (40000, 25000, 18000, 45000, 30000); string employeeName=new string(5) "Rich'. "Claire', "Mary". "Bob". Sarah'); fer (Inti-:imassal) masal-employee Salary: Console.WriteLine("The maximum salary is (0:0)'.maxSal) Console.WriteLine("The employees are") for(int i = 0; x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
