Write a C# program to create a static function factorial and calculate the factorial of the number.
Object:
Write a program to explain the method in C#. Create a static function factorial() that accepts a number
from the user and returns the factorial of the number. C# Projects with Source Code
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LAB_4a
{
class factorial…continue for code click here…