using System; // funx.cs namespace funx1 { class funx2 { static void Main(string[] args) { double x = 90; // rextester.com/PYG11940 Console.WriteLine("{0} {1}", x, funx(x)); Console.ReadKey(); } public static double funx(double x) { double rad,a,b,c,d,e,f,funx; rad = x * Math.PI / 180; a = Math.Pow (x,1/4); b = Math.Sqrt(x); // Console.WriteLine(b); c = Math.Cos(rad); Console.WriteLine(c); d = Math.Log10(x); // Console.WriteLine(d); e = Math.Exp(b); f = Math.Log10(b) * Math.Log(e); return funx = a + b + c + d + e + f; } }}