1
Answer

arrays and using a for loop function

Photo of anti virus

anti virus

6y
497
1
Calculate the sum of the values in the marks array.
Calculate the mean average value and assign that to the average variable.
 
using System;

namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
int sum = 0;
int[] marks = { 24, 10, 26, 20 };

foreach(int mark in marks)
{


}

Console.WriteLine(sum);
}
}

Answers (1)