WAP to calculate the sum of integer of list
Answers
Answered by
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