Using System; using System.IO;
 using System.Linq;
 using System.Collections.Generic;
 namespace CSharp_Shell
 {
 public static class Program
 {
 public static void Main() 
 {
 string X;
 string not;
 string F;
 string A;
 X = "Привет";
 string[] nota = new string[7];
 nota[1] = "До";
 nota[2] = "Ре";
 nota[3] = "Ми";
 nota[4] = "Фа";
 nota[5] = "Соль";
 nota[6] = "Ля";
 nota[7] = "Си";
 Console.WriteLine("Введите ноту");
 F = Console.ReadLine();
 A = F+nota[1+3];
 Console.WriteLine(A);
 }
 }
 }
 Эта программа не хочет запускаться она должна прибавлять по 3 символа к примеру вводим до, а она выводит ми.
                                                            
                             
                         
                    
static void Main(string[] args)
{
string F;
string[] nota = new string[7];
nota[0] = "До";
nota[1] = "Ре";
nota[2] = "Ми";
nota[3] = "Фа";
nota[4] = "Соль";
nota[5] = "Ля";
nota[6] = "Си";
Console.WriteLine("Введите ноту");
F = Console.ReadLine();
int Index = -1;
for(int i=0;i<7;i++)
{
if(nota[i]==F)
{
Index = i+2;
if (Index > 6) Index = Index - 7;
}
}
if(Index == -1) Console.WriteLine("Нота не найдена");
else Console.WriteLine(nota[Index]);
Console.ReadLine();
}