Home

Project 0

IT by Phil

using System;

class ABBA
{
static int Factorial(int n)
{
    if (n==1) return 1;
    return n * Factorial(n-1);
}

    static void Main(string[] args)
    {
        System.Console.WriteLine("ABBA!");
        System.Console.Write("Enter number of vovels.");
        string s = Console.ReadLine();
        int vovels=int.Parse(s);
        System.Console.Write("Enter number of Consonants.");
        s=System.Console.ReadLine();
        int Consonants=int.Parse(s);
        Console.WriteLine(Factorial(vovels)*Factorial(Consonants));
    }
}