• Log in or sign up for an account here: https://www.sythe.org/login

Need very short program

Potamus
Need very short program
On my phone but for simba
Procedure generate:
Var
I, j: integer;
Options: tstringarray;

Begin
Options := ['a', etc.];
For i:=0 to high(options) do
For j:=0 to high(options) do
Writeln(options + options[j]);
End;
 
Two Factor Authentication User
Sythe Awards 2013 Winner
Sythe Awards 2014 Winner
MushyMuncher
Pokémon Trainer
St. Patrick's Day 2013
Easter 2013
Lumpy Space Princess
Sythe RSPS Player
Halloween 2013
Christmas 2013
Gohan has AIDS
<3 n4n0
Tortoise Penis
Heidy
UWotM8?
Shitting Rainbow
Discord Verified
Extreme Homosex
Former OMM
Hey... this isnt a fun rank
Potamus
Spyro
St. Patrick's Day 2014
Supporting Business
Sythe's 10th Anniversary
Need very short program
Procedure generate;
Var
I, j: integer;
Options: tstringarray;

Begin
Options := ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','r','s','t','u','w','z','x','y','-','1','2','3','4','5','6','7','8','9','0'];
For i:=0 to high(options) do
For j:=0 to high(options) do
Writeln(options + options[j]);
End;

[Error] (8:112): Closing square bracket (']') expected at line 7
Compiling failed.
[Error] (7:112): Closing square bracket (']') expected at line 6
Compiling failed.
[Error] (2:19): Semicolon (';') expected at line 1
Compiling failed.
[Error] (8:112): Closing square bracket (']') expected at line 7
Compiling failed.
 
Need very short program
Seeing as this is the Visual Basic forum, I assume you wanted to use Visual Basic?

Code:
        'The Array of Characters...
        Dim characters = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}

        '2 Character Combinations...
        For i As Integer = 0 To characters.GetUpperBound(0)
            For o As Integer = 0 To characters.GetUpperBound(0)
                Console.WriteLine(characters(i) + characters(o))
            Next
        Next

        '3 Character Combinations...
        For i As Integer = 0 To characters.GetUpperBound(0)
            For o As Integer = 0 To characters.GetUpperBound(0)
                For p As Integer = 0 To characters.GetUpperBound(0)
                    Console.WriteLine(characters(i) + characters(o) + characters(p))
                Next
            Next
        Next

But maybe you want to use C#?
Code:
            //The Array of Characters...
                string[] characters = new string[] { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };

            //2 Character Combinations...
            for (int i = 0; i < characters.GetUpperBound(0); i++)
            {
                for (int o = 0; o < characters.GetUpperBound(0); o++)
                {
                    Console.WriteLine(characters[i] + characters[o]);
                }
            }

            //3 Character Combinations...
            for (int i = 0; i < characters.GetUpperBound(0); i++)
            {
                for (int o = 0; o < characters.GetUpperBound(0); o++)
                {
                    for (int p = 0; p < characters.GetUpperBound(0); p++)
                    {
                        Console.WriteLine(characters[i] + characters[o] + characters[p]);
                    }
                }
            }
 
Runescape Gamblingrunescape gambling
Back
Top