Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Collections;
- using System.Windows;
- namespace CSharpConsoleApp
- {
- class Program
- {
- static void Main()
- {
- int sum = 0;
- int[] a1 = new int[] { 1, 2, 68, 9 };
- int[] a2 = new int[] { 75, 96 };
- foreach (int item in a1)
- {
- sum += item;
- }
- foreach (var item in a2)
- {
- sum += item;
- }
- Console.WriteLine(sum);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement