/******************************************************************************
Online C# Compiler.
Code, Compile, Run and Debug C# program online.
Write your code in this editor and press "Run" button to execute it.
*******************************************************************************/
using System;
class HelloWorld {
static int Factorial(int n)
{
int result = 1;
for(int i =2 ; i<=n; i++)
{
result *= i;
}
return result;
}
static void Main() {
double x = 0.33 , y = 0.02;
double s = 1 + x + (Math.Pow(x,2) /Factorial(2)) + (Math.Pow(x,3) /Factorial(3)) + (Math.Pow(x,4) /Factorial(4));
double w = x * (Math.Sin(x) + Math.Cos(y));
Console.WriteLine($"s = {s}");
Console.WriteLine($"w = {w}");
}
}