Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Task_3._3._3
- {
- class Program
- {
- static void Main(string[] args)
- {
- int sum = 0;
- int[] numbers = { 12, 2, 5, 12, 5 };
- for(int i = 0; i < numbers.Length; i++)
- {
- sum += numbers[i];
- }
- Console.WriteLine($"Sum of array numbers = {sum}");
- Console.ReadLine();
- }
- }
- }
Add Comment
Please, Sign In to add comment