Advertisement
BojidarDosev

zadacha dim

Mar 19th, 2020
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.84 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 ConsoleApp45
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int[,] array = new int[5, 10];
  14.             int i, j;
  15.             for (i = 0; i < 5; i++)
  16.                 for (j = 0; j < 10; j++)
  17.                     array[i, j] = int.Parse(Console.ReadLine());
  18.             for (i = 0; i < 5; i++)
  19.             {
  20.                 for (j = 0; j < 10; j++)
  21.                     Console.Write(array[i, j] + " ");
  22.                 Console.WriteLine();
  23.             }
  24.         }
  25.     }
  26. }
  27. /*
  28.  1
  29. 2
  30. 3
  31. 4
  32. 5
  33. 6
  34. 7
  35. 8
  36. 9
  37. 10
  38. 11
  39. 12
  40. 13
  41. 14
  42. 15
  43. 16
  44. 17
  45. 18
  46. 19
  47. 20
  48. 21
  49. 22
  50. 23
  51. 24
  52. 25
  53. 26
  54. 27
  55. 28
  56. 29
  57. 30
  58. 31
  59. 32
  60. 33
  61. 34
  62. 35
  63. 36
  64. 37
  65. 38
  66. 39
  67. 40
  68. 41
  69. 42
  70. 43
  71. 44
  72. 45
  73. 46
  74. 47
  75. 48
  76. 49
  77. 50
  78. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement