Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void Main(string[] args)
- {
- int[] numbers = { 12, 2, 5, 12, 5 };
- int sum = 0;
- for (int i = 0; i < numbers.Length; i++)
- {
- sum += numbers[i];
- }
- Console.WriteLine("Сумма всех чисел в массиве: " + sum);
- }
Advertisement
Add Comment
Please, Sign In to add comment