Project 0
IT MATVEY - C# ABBA SOURCE CODE
using System;
class ABBA
{
static int Factorial(int n)
{
if(n==1) return 1;
return n * Factorial(n-1);
}
public static void Main()
{
System.Console.WriteLine("ABBA");
System.Console.Write("Enter number of Vowels:");
string s = Console.ReadLine();
int vowels = int.Parse(s);
System.Console.Write("Enter number of Consonants:");
s = System.Console.ReadLine();
int consonants = int.Parse(s);
Console.WriteLine(Factorial(vowels) * Factorial(consonants));
}
}