using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ГончароваНЕ_ПР3 { internal class zadanie2 { public static string str; public static int b; public string forString { set { str = value; } } public int forInt { set { b = value; } } public static void getsymbol() { char symbol = ' '; for (int i = 0; i < str.Length; i++) { if (i+1 == b) symbol = str[i]; } Console.WriteLine($"На позиции {b} стоит символ '{symbol}'"); } } }