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 СSLight13
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[,] file = { {"Имя"}, {"Отчество"} };
- string addToFile = Console.ReadLine();
- string[,] tempFile = new string[file.Length + 1, 0];
- for (int i = 0; i < file.Length; i++)
- {
- for (int j = 0; j < file.Length; j++)
- {
- tempFile[i, j] = file[i, j];
- }
- }
- tempFile[tempFile.GetLength(0) - 1, 0] = addToFile;
- file = tempFile;
- for (int i = 0; i < file.GetLength(0); i++)
- {
- for (int j = 0; j < file.GetLength(1); j++)
- {
- Console.Write(file[i, j] + " ");
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement