Name: Jinnai and the Bugrom 2009-10-18 17:34
...to print out the lyrics to Hubba Hubba Zoot Zoot.
...in a language of your choosing.
...in a language of your choosing.
christopher@chrislaptop$ php -r "print(\"the lyrics to [i]Hubba Hubba Zoot Zoot[/i].\n\");"
print'the lyrics to Hubba Hubba Zoot Zoot.'
p'the lyrics to Hubba Hubba Zoot Zoot.'
;; hubba - displays ``the lyrics to Hubba Hubba Zoot Zoot.''
;; Adapted from durrrrrr <http://dis.4chan.org/read/prog/1209252040/72>;;
;; Adapted from cocks <http://dis.4chan.org/read/prog/1204983387/529>;;
;;
;; Copyright (c) 2008 Christopher
;; Copyright (c) 2008 James
;; Copyright (c) 2009 Anonymous
;;
;; Permission is hereby granted, free of charge, to any person obtaining a copy
;; of this software and associated documentation files (the "Software"), to deal
;; in the Software without restriction, including without limitation the rights
;; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
;; copies of the Software, and to permit persons to whom the Software is
;; furnished to do so, subject to the following conditions:
;;
;; The above copyright notice and this permission notice shall be included in
;; all copies or substantial portions of the Software.
;;
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
;; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
;; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
;; THE SOFTWARE.
(write "the lyrics to Hubba Hubba Zoot Zoot.")
static string SPACE_CHARACTER = " ";
static string THAT_WHICH_WILL_ZOOT = "Hubba";
static string THAT_WHICH_WILL_BE_HUBBAD = "Zoot";
static int NUMBER_OF_HUBBA_REPETITIONS = 2;
static int NUMBER_OF_ZOOT_REPETITIONS = 2;
static int NUMBER_OF_UNIQUE_VERBS_AND_NOUNS = 2;
static string FORM_OF_MEDIA_BEING_REQUESTED = "lyrics";
static int INCREMENT_SIZE = 1;
static string IDENTIFIER = "The";
static string PREPOSITION = "to";
static void main(string args)
{
string songName = "", request = "";
for (int counter = 0; counter <= NUMBER_OF_UNIQUE_VERBS_AND_NOUNS; i += INCREMENT_SIZE)
{
for (int counter = 0; counter <= NUMBER_OF_HUBBA_REPETITIONS; i += INCREMENT_SIZE)
{
songName += THAT_WHICH_WILL_ZOOT;
songName += SPACE_CHARACTER;
}
for (int counter = 0; counter <= NUMBER_OF_ZOOT_REPETITIONS; i += INCREMENT_SIZE)
{
songName += THAT_WHICH_WILL_BE_HUBBAD;
songName += SPACE_CHARACTER;
}
}
request += IDENTIFIER;
request += SPACE_CHARACTER;
request += FORM_OF_MEDIA_BEING_REQUESTED
request += SPACE_CHARACTER;
request += PREPOSTITION;
request += songName;
System.out.println(request);
}
public class Lyrics
{
static String SPACE_CHARACTER = " ";
static String THAT_WHICH_WILL_ZOOT = "Hubba";
static String THAT_WHICH_WILL_BE_HUBBAD = "Zoot";
static int NUMBER_OF_HUBBA_REPETITIONS = 2;
static int NUMBER_OF_ZOOT_REPETITIONS = 2;
static int NUMBER_OF_UNIQUE_VERBS_AND_NOUNS = 2;
static String FORM_OF_MEDIA_BEING_REQUESTED = "lyrics";
static int INCREMENT_SIZE = 1;
static String IDENTIFIER = "The";
static String PREPOSITION = "to";
public static void main(String[] args)
{
String songName = "", request = "";
for (int i = 0;
i <= NUMBER_OF_UNIQUE_VERBS_AND_NOUNS;
i += INCREMENT_SIZE)
{
for (int counter = 0;
counter <= NUMBER_OF_HUBBA_REPETITIONS;
counter += INCREMENT_SIZE)
{
songName += THAT_WHICH_WILL_ZOOT;
songName += SPACE_CHARACTER;
}
for (int counter = 0;
counter <= NUMBER_OF_ZOOT_REPETITIONS;
counter += INCREMENT_SIZE)
{
songName += THAT_WHICH_WILL_BE_HUBBAD;
songName += SPACE_CHARACTER;
}
}
request += IDENTIFIER;
request += SPACE_CHARACTER;
request += FORM_OF_MEDIA_BEING_REQUESTED;
request += SPACE_CHARACTER;
request += PREPOSITION;
request += SPACE_CHARACTER;
request += songName;
System.out.println(request);
}
}C#?
using System;#include <stdint.h>
#include <stdio.h>
#include <string.h>
#define MAXSTRLEN_SONGNAME 32
#define MAXSTRLEN_REQUEST 256
char* SPACE_CHARACTER = " ";
char* THAT_WHICH_WILL_ZOOT = "Hubba";
char* THAT_WHICH_WILL_BE_HUBBAD = "Zoot";
const uint8_t NUMBER_OF_HUBBA_REPETITIONS = 2;
const uint8_t NUMBER_OF_ZOOT_REPETITIONS = 2;
const uint8_t NUMBER_OF_UNIQUE_VERBS_AND_NOUNS = 2;
char* FORM_OF_MEDIA_BEING_REQUESTED = "lyrics";
static int INCREMENT_SIZE = 1;
char* IDENTIFIER = "The";
char* PREPOSITION = "to";
int main()
{
uint8_t countOuter, countInner;
char songName[MAXSTRLEN_SONGNAME], request[MAXSTRLEN_REQUEST];
for (countOuter =0; countOuter <= NUMBER_OF_UNIQUE_VERBS_AND_NOUNS; countOuter += INCREMENT_SIZE)
{
for (countInner = 0; counter <= NUMBER_OF_HUBBA_REPETITIONS; countInner += INCREMENT_SIZE)
{
strcat(songName, THAT_WHICH_WILL_ZOOT);
strcat(songName, SPACE_CHARACTER);
}
for (countInner = 0; counter <= NUMBER_OF_ZOOT_REPETITIONS; countInner += INCREMENT_SIZE)
{
strcat(songName, THAT_WHICH_WILL_BE_HUBBAD);
strcat(songName, SPACE_CHARACTER);
}
}
strcat(request, IDENTIFIER);
strcat(request, SPACE_CHARACTER);
strcat(request, FORM_OF_MEDIA_BEING_REQUESTED);
strcat(request, SPACE_CHARACTER)
strcat(request, PREPOSTITION);
strcat(request, songName);
printf("%s\n", request);
}
(display "Hubba hubba zoot zoot
Num
Deba uba zat zat
Num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-num
Hubba hubba zoot zoot
Num
Deba uba zat zat
Num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-hoorepa hoorepa
HAH
A-huh-hoorepa a-num num
A-num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-hoorepa hoorepa a-huh-hoorepa
HAH
A-num num
A-num
Hubba hubba zoot zoot
A-huh zoot a-huh
Deba uba zat zat a-num num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
Num
A-hoorepa hoorepa a-huh-hoorepa a-num num
Deba uba zat zat
A-hoorepa hoorepa a-huh-hoorepa a-num num
a-num
Hubba hubba zoot zoot
deba uba zat zat
HAH
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
Hubba hubba zoot zoot
Duuh
Deba uba zat zat a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
HAH
A-num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
HAH
Hubba hubba zoot zoot
Deba uba zat zat a-num num
HOH
Hubba hubba zoot zoot
Hubba hubba mo-re mo-re
Deba uba zat zat a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-num"
(princ "Hubba Hubba Zoot Zoot.")
var lyric = "hubba hubba zoot zoot"; alert(lyric);