BojidarDosev

задача 4 8,3.2020

Mar 8th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.78 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 ConsoleApp42
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double i, j;
  14.             int[,] array = new int [5, 4];
  15.             for (i = 0; i < 5; i++)
  16.                 for (j = 0; j < 4; j++)
  17.                     array[i, j] = double.Parse(Console.ReadLine());
  18.             for (i = 0; i < 5; i++)
  19.             {
  20.                 for (j = 0; j < 4; j++)
  21.                     Console.Write(array[i, j] + " " );
  22.                     Console.WriteLine();
  23.             }
  24.         }
  25.     }
  26. }
  27. /*
  28.  1
  29.  2
  30.  3,14
  31.  6,28
  32.  3,5
  33.  7
  34.  38,47
  35.  21,98
  36.  4
  37.  8
  38.  50,24
  39.  25,12
  40.  0
  41.  0
  42.  0
  43.  0
  44.  2,2
  45.  4,4
  46.  15,20
  47.  13,82
  48.  */
Add Comment
Please, Sign In to add comment