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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!