int a = 4; int b = 3; int sum = a + b; // sum will be 7
int[] numbers = { 1, 2, 3, 4 }; int total = 0; foreach (int number in numbers) { total = total + number; } // total will be 10The Add() function is part of the System namespace in C#, so no external packages or libraries are needed.