Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Feb 22nd, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Task_3._3._3
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int sum = 0;
  14.             int[] numbers = { 12, 2, 5, 12, 5 };
  15.  
  16.             for(int i = 0; i < numbers.Length; i++)
  17.             {
  18.                 sum += numbers[i];
  19.  
  20.             }
  21.             Console.WriteLine($"Sum of array numbers = {sum}");
  22.  
  23.             Console.ReadLine();
  24.         }
  25.     }
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top