GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Soy_Magnus (soy_magnus@detroitriotcity.com)'s status on Thursday, 16-Apr-2026 15:22:49 JSTSoy_MagnusSoy_Magnus
    in reply to
    • Forest of Enchantment
    @Forestofenchantment wowy wow I'm a billion dollar coder now
    program WorstCodeEver;

    var
    a, b, c, d, e: integer;
    x: string;
    i: integer;

    function AddNumbers(k, j: integer): integer;
    var
    uselessVar1, uselessVar2: integer;
    begin
    uselessVar1 := 999; { does nothing }
    uselessVar2 := -999; { also does nothing }
    AddNumbers := k + j + 0 + 0 + 0; { unnecessary additions }
    end;

    procedure PrintSomething(s: string);
    var
    temp: string;
    begin
    temp := s; { pointless copy }
    writeln(temp); { prints it anyway }
    end;

    begin
    a := 0;
    b := 1;
    c := 2;
    d := 3;
    e := 4;

    { random loop that accomplishes nothing }
    for i := 1 to 3 do
    begin
    a := a + 0; { useless }
    b := b + 0; { useless }
    end;

    x := 'Enter a number:';
    PrintSomething(x);

    readln(a);

    x := 'Enter another number:';
    PrintSomething(x);

    readln(b);

    c := AddNumbers(a, b);

    { Overly dramatic multi-step print }
    x := 'The result is:';
    PrintSomething(x);

    writeln(c);

    { pointless conditional }
    if c = c then
    begin
    PrintSomething('This condition is always true.');
    end
    else
    begin
    PrintSomething('This will never happen.');
    end;

    { infinite loop that breaks immediately }
    while true do
    begin
    break;
    end;

    { final insult }
    PrintSomething('Program finished, somehow.');
    end.
    Incredible¡
    In conversationabout 2 months ago from detroitriotcity.compermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.