Advertisement
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 ConsoleApp31
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[] a = Vvod();
- SummaMassiva(numbers);
- }
- public static int SummaMassiva(int [] massiv)
- {
- int sum = new int();
- for (int j = 0; j <= 4; j++)
- {
- massiv[j] = massiv[j] + 1;
- }
- public static int[] Vvod(int [] array)
- {
- Console.WriteLine("Vvedite dlinu massiva");
- int b = int.Parse(Console.ReadLine());
- int[] numbers = new int[b];
- for (int i = 0; i < 5; i++)
- {
- numbers[i] = int.Parse(Console.ReadLine());
- }
- return numbers;
- }
- public static void[] Vyvod (int [] S)
- {
- for (int i=0;i<5;i++)
- {
- Console.WriteLine(S[i])
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement