IT
Projects by Ambient Lurker
Console ABBA

Project 0

Yip-yap wadaf-
Uuuh... Idk. Just ABBA in the console.

Program.cs
using System;

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

    static void Main(string[] args)
    {
        Console.WriteLine("ABBA!");
        Console.Write("Enter number of vowels: ");
        string s = Console.ReadLine();
        int vowels = int.Parse(s);

        Console.Write("Enter number of consonants: ");
        s = Console.ReadLine();
        int consonants = int.Parse(s);

        Console.WriteLine(Factorial(vowels) * Factorial(consonants));
    }
}
Web hosting by Somee.com