Computer Science, asked by hridaymazumder1560, 10 months ago

WAP to calculate the sum of integer of list

Answers

Answered by akshayamca14
0

Answer:

private static Main(){

List<int> numbers=new List<int>(){1,4,6,7};

int result=0;

foreach(int number in numbers){

result=result+number;

}

Console.WriteLine(result);

}

Explanation:

Similar questions