Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Drafty
- {
- class Program
- {
- static double Method(double x, double y)
- {
- return 3 * Math.Sin(x) + 2 * Math.Cos(y);
- }
- static void Main(string[] args)
- {
- Console.Write("Введите x: ");
- double x = double.Parse(Console.ReadLine());
- Console.Write("Введите y: ");
- double y = double.Parse(Console.ReadLine());
- Console.WriteLine("Результат: " + Method(x, y));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment