Abdula_2314124

Untitled

Feb 22nd, 2024
1,231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.45 KB | None | 0 0
  1. using System;
  2. using System.Text;
  3.  
  4. namespace MASIVI
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             string[,,] guns_3 = new string[3, 3, 3];
  11.             guns_3[0, 0, 0] = "StartPoint";
  12.             string[] guns_1 = { "WEapon", "Weapon_2" };
  13.             string[,] guns = new string[3, 3];
  14.             for (int i = 0; i < guns.GetLength(0); i++)
  15.             {
  16.                 for (int j = 0; j < guns.GetLength(1); j++)
  17.                 {
  18.                     string nameGun = Console.ReadLine();
  19.                     guns[i, j] = nameGun;
  20.                 }
  21.             }
  22.             for (int i = 0; i < guns.GetLength(0); i++)
  23.             {
  24.                 for (int j = 0; j < guns.GetLength(1); j++)
  25.                 {
  26.                     Console.WriteLine(guns[i, j]);
  27.                 }
  28.             }
  29.             string name = Console.ReadLine();
  30.             Console.WriteLine("Hello my name is " + name);
  31.             Console.WriteLine($"Hello you name is {name}");
  32.             StringBuilder stringBuilder = new StringBuilder("Hello my name is ");
  33.             Console.WriteLine(stringBuilder.Append(name));
  34.             string textPart_1 = "Сьогодні був";
  35.             string textPart_2 = "Урок по масивам";
  36.             Console.WriteLine("Частина 1: " + textPart_1 + " " + textPart_2);
  37.             Console.WriteLine($"Частина 1: {textPart_1} {textPart_2}");
  38.         }
  39.     }
  40. }
  41.  
Advertisement
Add Comment
Please, Sign In to add comment