https://pastein.ru/t/LW

  скопируйте уникальную ссылку для отправки


//Rextester.Program.Main is the entry point for your code. Don't change it.
//Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace Rextester
{
    public class Program
    {
        public static void Main(string[] args)
        {
            for(double x = (-1) * Math.PI; x <= 0; x += Math.PI / 10)
            {
                Console.WriteLine(" y = {0}", Math.Cos(2*x + 3));
            }
        }
    }
}