public static void Main()
Console.Write("Vols generar les coordenades amb increments de 0,5? (sí/no): ");
string resposta = Console.ReadLine().ToLower();
double increment = (resposta == "sí" || resposta == "si") ? 0.5 : 1;
for (double x = -5; x <= 5; x += increment)
double f_x = Math.Pow((x - 2) / 5, 2) + 4;
Console.WriteLine(x.ToString("F1") + " | " + f_x.ToString("F1"));