using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Emit;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    int result;
    int vovels;
    int consonants;
    static int Factorial(int n)
    {
        if (n == 1) return 1;
        return n * Factorial(n - 1);
    }
    void Model()
    {
        result = Factorial(vovels) * Factorial(consonants);

    }
    void View()
    {
        string s = TextBox1.Text;
        vovels = int.Parse(s);
        s = TextBox2.Text;
        consonants = int.Parse(s);

    }
    void ViewModel()
    {
        View();
        Model();
        Label1.Text = result.ToString();

    }
    protected void Button1_Click(object sender, EventArgs e)
    { 
    
    }
    protected void Page_Load(object sender, EventArgs e)
       {

       }


    protected void Button1_Click1(object sender, EventArgs e)
    {
        ViewModel();
        Label1.Text = TextBox1.Text + TextBox2.Text;
    }
} 

PROJECTS

Web hosting by Somee.com