Advertisement
Guest User

Untitled

a guest
May 25th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.25 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp31
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int[] a = Vvod();
  14.             SummaMassiva(numbers);
  15.            
  16.  
  17.            
  18.            
  19.         }
  20.         public static int SummaMassiva(int [] massiv)
  21.             {
  22.                 int sum = new int();
  23.             for (int j = 0; j <= 4; j++)
  24.             {
  25.                 massiv[j] = massiv[j] + 1;
  26.                
  27.             }
  28.         public static int[] Vvod(int [] array)
  29.             {
  30.                 Console.WriteLine("Vvedite dlinu massiva");
  31.  
  32.                 int b = int.Parse(Console.ReadLine());
  33.                 int[] numbers = new int[b];
  34.                 for (int i = 0; i < 5; i++)
  35.                 {
  36.                     numbers[i] = int.Parse(Console.ReadLine());
  37.                 }
  38.                 return numbers;
  39.  
  40.             }
  41.         public static void[] Vyvod (int []  S)
  42.             {
  43.                 for (int i=0;i<5;i++)
  44.                 {
  45.                     Console.WriteLine(S[i])
  46.                 }
  47.  
  48.  
  49.  
  50.  
  51.             }
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.         }
  66.         }
  67.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement