Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-8081-120121-

repetition

Name: Anonymous 2008-09-29 13:09

print "dongs" five times in your favorite language

with extreme conciseness/verbosity

Name: Anonymous 2008-09-29 13:14

print 'dongs'*5

Name: Anonymous 2008-09-29 13:16

5.times { print "Odelay!" }

Name: Anonymous 2008-09-29 13:21

"dongs" fünf Zeiten in Ihrer Lieblingssprache

Name: Anonymous 2008-09-29 13:25


main = sequence_ $ replicate 5 $ putStrLn "dongs"

Name: Anonymous 2008-09-29 13:57

#include <stdio.h>
main() {
    size_t i = 5;
    for ( ; i; --i, printf( "dongs" ) );
}

Name: Anonymous 2008-09-29 14:06

>>6
You need to include string.h to use size_t.

Name: Anonymous 2008-09-29 14:11

MsgBox String(5,"dongs ")

Name: Anonymous 2008-09-29 14:11

package org.fourchan.text.prog.hurrdurr;

import java.util.List;        // for storage
import java.util.ArrayList;   // concrete List class

public class Dong {
   // value of our Dong object
   private final String DONG = "Dong";

   // print the value of a list of dongs
   public static void main(String[] argv) {
      // declare the number of Dongs we want...
      final int NUM_DONGS = 5;
      // ...and store them in a List
      List<Dong> dongs = new ArrayList<Dong>(NUM_DONGS);
     
      // initialize our List of Dongs
      for (int i = 0; i < NUM_DONGS; i++) {
         dongs.add(new Dong());
      }

      // print the value of our Dongs
      for (Dong d : dongs) {
         System.out.println(d);
      }
   }

   // string representation of a Dong
   public String toString() {
      return this.DONG;
   }

}


c:\temp>javac org\fourchan\text\prog\hurrdurr\Dong.java

c:\temp>java org.fourchan.text.prog.hurrdurr.Dong
Dong
Dong
Dong
Dong
Dong

Name: Anonymous 2008-09-29 14:15

print 'dongs'*5

Name: Anonymous 2008-09-29 14:23

printf("\"dongs\" five times in your favorite language.");

Name: Anonymous 2008-09-29 14:25

>>10
THAT'S PRETTY COOL COPYPASTA.

Name: Anonymous 2008-09-29 14:45

import Control.Monad.Instances

main = putStrLn $ unwords $ (map =<< const) "dongs"

Name: Anonymous 2008-09-29 14:49

import Control.Monad.Instances

main = (mapM_ =<< const . putStrLn ) "dongs"

Name: Anonymous 2008-09-29 15:16

(print-dongs-five-times)

Name: Anonymous 2008-09-29 16:15


i=0
while [ "${i}" -lt 5 ]; do
    echo "dongs"
    i=`expr "${i}" + 1`
done

Name: Anonymous 2008-09-29 16:20

main = do
  putStrLn "dongs"
  putStrLn "dongs"
  putStrLn "dongs"
  putStrLn "dongs"
  putStrLn "dongs"

Name: Anonymous 2008-09-29 16:23

>>17 see >>5

Name: Anonymous 2008-09-29 16:31

import Control.Monad.Instances
import List

main = mapM_ (putStrLn . intersperse ' ') $ transpose $ (map =<< const) "dongs"

Name: Anonymous 2008-09-29 16:40

>>19
Explain how (map =<< const) works, please.

Name: Anonymous 2008-09-29 16:43

print 'dongs'x5
VALID PERL CODE

Name: Anonymous 2008-09-29 16:46

>>12
...

Name: Anonymous 2008-09-29 16:46

>>20
Lern2lambdabot.

Name: Anonymous 2008-09-29 16:56

dongs dongs dongs dongs dongs

Name: Anonymous 2008-09-29 16:59

>>20
magic!

Name: Anonymous 2008-09-29 17:27


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<<<<<<<<<<<<<<<<<<<<<<<<<<<<[.>]

Name: Anonymous 2008-09-29 17:29

>>24
VALID PHP CODE

Name: Anonymous 2008-09-29 17:35

Name: Anonymous 2008-09-29 17:40

>>27
Parse error: syntax error, unexpected T_STRING in Command line code on line 1

Fixed: dongsdongsdongsdongsdongs;

Name: Anonymous 2008-09-29 18:33

;; quintupledongs - displays ``dongs'' five times.
;; based on http://dis.4chan.org/read/prog/1204983387/529
;;

;; This is an example of the sort of computer programs you can write
;; after learning Scheme.
;;
;; Copyright (c) 2008
Christopher
;; Contributers:
Robert
;;
;; 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 "dongs")
(write "dongs")
(write "dongs")
(write "dongs")
(write "dongs")

Name: Anonymous 2008-09-29 19:29

(for-each (lambda (x) (display "sgnod")) (range 0 5)))

Name: Anonymous 2008-09-29 19:37

10 CLS
20 FOR I = 1 TO 5
30 PRINT "dongs"
40 NEXT I
50 END

Name: Anonymous 2008-09-29 22:29


<html>
   <body>
      <p>
         dongs<br/>
         dongs<br/>
         dongs<br/>
         dongs<br/>
         dongs
      </p>
   </body>
</html>

Name: Anonymous 2008-09-29 22:52

$aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaacbcbbbb
bbbcaaaaaaaaaaaacbbbbbbbbbbbbbbbbbbbbbbb
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
bbbbbbbbbbbb$l

Name: Anonymous 2008-09-29 22:54

cat dongs.txt

Name: Anonymous 2008-09-29 23:06

Name: Anonymous 2008-09-29 23:29

>>33
Your code doesn't compile on my system:
Line 1, Column 0: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>".
Line 2, Column 8: document type does not allow element "BODY" here.
Line 4, Column 17: NET-enabling start-tag requires SHORTTAG YES.
Line 5, Column 17: NET-enabling start-tag requires SHORTTAG YES.
Line 6, Column 17: NET-enabling start-tag requires SHORTTAG YES.
Line 7, Column 17: NET-enabling start-tag requires SHORTTAG YES.
Line 11, Column 6: end tag for "HTML" which is not finished.

Name: Anonymous 2008-09-29 23:31

fixed
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"">
<title/>
<body>
<ul>
<li>dongs</li>
<li>dongs</li>
<li>dongs</li>
<li>dongs</li>
<li>dongs</li>
</ul>
</body>
</html>

Name: Anonymous 2008-09-29 23:44

>>38
still buggy :(

Name: TRUE LISP WEENIE 2008-09-30 0:15

dongs M-bkspc C-yyyyy

Name: Anonymous 2008-09-30 0:52

5adongs

Name: Anonymous 2008-09-30 1:31

(define (five-dongs)
  (letrec ((n-dongs (lambda (num results)
                      (cond ((> num 0) (n-dongs (- num 1) (append results '(dongs))))
                            (else results)))))
    (display (n-dongs 5 '()))))

Name: Anonymous 2008-09-30 2:36

main = mapM_ putStrLn $ replicate 5 "dongs"

Name: Anonymous 2008-09-30 2:48

>>42
Why would you abstract away dong repetition but not repetition in general?  Or fuck, repetition can just be an enumeration sort of thing with a many-to-one function.
Here:
(define (enumerate current high function results)
  (cond ((< current high)
         (enumerate (+ current 1) high function (append results (list (function current)))))
        (else results)))

(define (repeat-dongs n)
  (enumerate 0 n (lambda (x) 'dongs) '()))

(define (five-dongs)
  (repeat-dongs 5))

(display (five-dongs))

Name: Anonymous 2008-09-30 3:08

(define (enumerate current high comparator incrementor mapper results)
  (cond ((comparator current high)
         (enumerate (incrementor current) high comparator incrementor mapper (append results (list (mapper current)))))
        (else results)))

(define (repeat something n)
  (enumerate 0 n (lambda (x y) (< x y)) (lambda (x) (+ 1 x)) (lambda (x) something) '()))

(define (repeat-dongs n)
  (repeat 'dongs n))

(define (five-dongs)
  (repeat-dongs 5))

(display (five-dongs))

Name: Anonymous 2008-09-30 4:07

>>45
I lol'd

Name: Anonymous 2008-09-30 4:35

for %% in (0 0 0 0 0) do @echo dongs

Name: Anonymous 2008-09-30 5:41

>>46
What's so funny?

Name: Anonymous 2008-09-30 6:37

<!DOCTYPE html>
<title></title>
<ul>
<li>dongs</li>
<li>dongs</li>
<li>dongs</li>
<li>dongs</li>
<li>dongs</li>
</ul>

Name: Anonymous 2008-09-30 8:16

>>48
Enterprise-ready Scalable Expandable Turkey LISP repeat-dongs Reference Implementation

Name: Anonymous 2008-09-30 9:35

:echo repeat("dongs ", 5)

Name: Anonymous 2008-09-30 9:52

print 'dongs ' * 5

Name: "GRUNNUR" 2008-09-30 10:27

"GRUNNUR"

Name: Anonymous 2008-09-30 10:31

yes dongs | head -n5

Name: Anonymous 2008-09-30 10:34


class Dong():
    def __init__(self):
        self.text = 'dongs'
    def dong(self):
        print self.text

dongs = [Dong()]*5

for dong in dongs:
    dong.dong()

Name: Anonymous 2008-09-30 10:53

#include <iostream>
#include <string>
#include <vector>

int main(void)
{
   std::vector<std::string> d(5, "dongs ");
   std::vector<std::string>::iterator dicks = d.begin();
   while(dicks != d.end())
   {
      std::cout << *dicks;
      ++dicks;
   }
   std::cout << std::endl;
   return 0;
}

Name: Anonymous 2008-09-30 10:55

>>56
Whopps, code tags.

#include <iostream>
#include <string>
#include <vector>

int main(void)
{
   std::vector<std::string> d(5, "dongs ");
   std::vector<std::string>::iterator dicks = d.begin();
   while(dicks != d.end())
   {
      std::cout << *dicks;
      ++dicks;
   }
   std::cout << std::endl;
   return 0;
}

Name: Anonymous 2008-09-30 12:21


section .data
msg db "dong",10,0

section .text
extern printf
global main
main:
    mov ebx, 5
    dongloop:
    push msg
    call printf
    add esp,8
    dec ebx
    jnz dongloop
        mov eax, 1
        int 80h

Name: Anonymous 2008-09-30 12:50


section .data
dong:   db "dong", 10
donglen equ $-dong

section .text
    global _start
_start:
    mov ecx, 5
.dong
    push ecx
    mov eax, 4
    mov ebx, 1
    mov ecx, dong
    mov edx, donglen
    int 80h
    pop ecx
    loop .dong

    mov eax, 1
    xor eax, eax
    int 80h

Name: Anonymous 2008-09-30 13:47


 ldx #$ff
 bne :++
: jsr $ffd2
: inx
  lda text,x
  bne :--
 rts

text: "dongs",13,0

Name: Anonymous 2008-09-30 13:49

>>60
Oh fuck! forgot about the 5x!


 ldy #4
: ldx #$ff
  bne :++
:  jsr $ffd2
:  inx
   lda text,x
   bne :--
  dey
  bpl :---
 rts

text: "dongs",13,0

Name: Anonymous 2008-09-30 13:55

донгс донгс донгс донгс донгс

Name: Anonymous 2008-09-30 14:10

>>62
valid perl code

Name: Anonymous 2008-09-30 14:34

puts "ᛞᛟᛝᛋ᛫ᛞᛟᛝᛋ᛫ᛞᛟᛝᛋ᛫ᛞᛟᛝᛋ᛫ᛞᛟᛝᛋ᛬"
puts "᚛ᚂᚑᚍᚄ ᚂᚑᚍᚄ ᚂᚑᚍᚄ ᚂᚑᚍᚄ ᚂᚑᚍᚄ᚜"

Name: Anonymous 2008-09-30 14:52

>>55
dong.dong()

Name: Anonymous 2008-09-30 15:05

>>59
eax = 0, int 80h. enjoy your segmentation fault.

Name: Anonymous 2008-09-30 15:18

>>66
I prefer General Protection Fault.

Name: Anonymous 2008-09-30 15:23

#include <iostream>

template <int N>
class dongs {
public:
    dongs() {
        std::cout << "dongs";
    }
private:
    dongs<N - 1> dong;
};

template <>
struct dongs<0> {
};

int main()
{
    dongs<5>();
    return 0;
}

Name: Anonymous 2008-09-30 15:51

recursion <3

public class main{
public static void main(String[] args){

    dongs(5);

}

public static void dongs(int n){
    dongs(n-1);

    if(n > 0)
        System.out.println("dongs");
    else
        return;
}
}

Name: Anonymous 2008-09-30 15:59

#/bin/bash
echo "dongs"
echo "dongs"
echo "dongs"
echo "dongs"
echo "dongs"
echo "dongs"
exit

Name: Anonymous 2008-09-30 16:35

#define dongs(pos) printf(&pos##ix["\021\045-000000000songs\012\0posix"],(pos##ix)["monkey"]+"food"-0x6c);
main(){dongs(un) dongs(un) dongs(un) dongs(un) dongs(un)}

Name: Anonymous 2008-09-30 16:36

>>68
I think mine is better:

#include <iostream>
#include <string>

template < int N > struct dongs { static const std::string v; };
template < int N > const std::string dongs<N>::v = dongs< N - 1 >::v + "dongs";

template <> struct dongs<0> { static const std::string v; };
const std::string dongs<0>::v = "";

int main() {
        std::cout << dongs<5>::v;
        return 0;
}

Name: Anonymous 2008-09-30 16:44

5>0" sgnod">,:v    
 ^_@#:-1 $_^#!<

Name: Anonymous 2008-09-30 16:44

CREATE TABLE Dong (
   dongid INTEGER AUTO_INCREMENT,
   dong   VARCHAR2(5),
   PRIMARY KEY(dongid)
);

CREATE OR REPLACE PROCEDURE InsertDongs(numDongs IN INTEGER) AS

   invalidParameter EXCEPTION;

   BEGIN

      IF numDongs IS NULL THEN RAISE invalidParameter
      END IF;
      IF numDongs < 1 THEN RAISE invalidParameter
      END IF;

      FOR i IN 1 .. numDongs LOOP

         INSERT INTO Dong(dong)
         VALUES('dongs');
  
      END LOOP;

      EXCEPTION

         WHEN invalidParameter THEN DBMS_OUTPUT.PUT_LINE('bad paramter recieved');
         WHEN OTHERS THEN DBMS_OUTPUT.PUT_LINE(SQLERRM);

   END;
END InsertDongs;

IsertDongs(5);

SELECT dong
FROM   Dong;

Name: Anonymous 2008-09-30 17:14

>>72

#include <iostream>
#include <string>

template < int N > struct dongs { static const std::string v; };

template < int N > const std::string dongs<N>::v = dongs< N - 1 >::v + "dongs";
template <>        const std::string dongs<0>::v = "";

int main() {
        std::cout << dongs<5>::v;
        return 0;
}


OPTMIZED

Name: Anonymous 2008-09-30 17:56

#include<stdio.h> void main(){for(i = 5; i > 0; --i, printf("dongs");}

Name: Anonymous 2008-09-30 18:14

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IsertDongs(5)' at line 35

Name: Anonymous 2008-09-30 19:39

[code]dongs
dongs
dongs
dongs
dongs[code]


[spoiler]in English[/spoiler]

Name: Anonymous 2008-09-30 21:13

>>77
meh, just a typo.

and btw, >>74 was written with Oracle 10g in mind. fuck MySQL

Name: Anonymous 2008-10-01 2:22

<script language="javascript" type="text/javascript">
 <!--
     for(var i=0; i < 5; i++)
         document.writeln("Dongs");
 //-->
</script>

Name: Anonymous 2008-10-01 2:35

printf("udonge\n");
printf("udonge\n");
printf("udonge\n");
printf("udonge\n");
printf("udonge\n");

Name: Anonymous 2008-10-01 2:46


    _  ∩
    ( ゚ ヮ゚)彡 EIRIN!! EIRIN!!
     ⊂彡


    _  ∩
    ( ゚ ヮ゚)彡 EIRIN!! EIRIN!!
     ⊂彡

Name: Anonymous 2008-10-01 3:55

>>66
That should have been ebx =(

Name: Anonymous 2008-10-01 9:38

#include <stdio.h>

int main(int argc, char **argv) {
    int i = 5;
    while (i--)
        printf("%s\n", "ドングズ");
    return 0;
}

Name: Anonymous 2008-10-01 10:05

(define (print-dongs x) (if (> x 0) (begin (write "dongs ") (print-dongs (- x 1)))))
(print-dongs 5)

Name: Anonymous 2008-10-01 15:29

    _  ∩
    ( ゚ ヮ゚)彡 EIRIN!! EIRIN!!
     ⊂彡

Name: Anonymous 2008-10-01 16:28

[ "DONGS" print ] 5 times

Name: Anonymous 2008-10-01 16:31


PROC hax(CHAN OF BYTE anus)
  WHILE TRUE
    out.string("dongs", 0, anus)
:

PROC fioc(CHAN OF BYTE keyboard, my_anus, error)
  hax(my_anus)
:

Name: Anonymous 2008-10-02 10:44

>>45
It is like the Sussman himself would have written it!

Name: Anonymous 2008-10-02 11:26

mapM_ (\ _ -> putStrLn "dongs") [1/0, 0/0, sqrt (-1), sum [ 9*10^^n | n <- [-1, -2 ..] ], undefined]

Name: Anonymous 2008-10-02 12:43

(\ _ ->

Name: Anonymous 2008-10-02 13:17

needs more APL

Name: Anonymous 2008-10-02 14:39

>>92
I was considering that early on in the thread but APL tutorials blew a fuse in my head.

Name: Anonymous 2008-10-02 16:46

>>93
Try some J!

Name: Anonymous 2008-10-02 17:32

>>94
Too messy. Custom symbols plz.

Name: Anonymous 2008-10-02 18:51

#include <stdio>
void main () {
  for (int i = 5; i > 0; i--) printf("dongs\n");
}

Name: Anonymous 2008-10-02 18:55

<stdio>
lolwut

Name: Anonymous 2008-10-02 18:57


HAI
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
    UP VAR!!1
    VISIBLE "DONGS"
    IZ VAR BIGGER THAN 4? KTHXBYE
IM OUTTA YR LOOP
KTHXBYE

Name: Anonymous 2008-10-02 19:17

>>96
#include <stdio.h>
int i;int main(void){while(i++<5)puts("dongs");}

Name: Anonymous 2008-10-02 19:19


import sys
map(sys.stdout.write, ["dongs\n" for dong in range(0,5)])


Unindented FIOC

Name: Anonymous 2008-10-02 20:18

>>100
Haskell equivalent:
[code]
mapM_ putStrLn ["dongs"|_<-[1..5]]
[code]

Name: Anonymous 2008-10-02 20:18

>>101

mapM_ putStrLn ["dongs"|_<-[1..5]]

Name: Anonymous 2008-10-02 22:03

main(){for(int i=5;--i;puts("dongs"));}

Name: beardy forth guy 2008-10-02 22:32

: DONGS 0 DO ." dongs " LOOP ;
5 DONGS

Name: Anonymous 2008-10-03 10:24

>>103
main(){for(int i=5;--i;puts("dongs"));}
main(i){for(i=5;i--;puts("dongs"));}

Name: Anonymous 2008-10-03 22:54

>>105
Type of i?

Name: Anonymous 2008-10-03 23:22

Upgraded to most recent TR

Name: Anonymous 2008-10-03 23:25

God damn you, shiichan.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"
     xml:lang="en" >
  <head>
    <title>Repitition demonstration</title>
  </head>  <body>
    <ul>
      <li>dongs</li>
      <li>dongs</li>
      <li>dongs</li>
      <li>dongs</li>
      <li>dongs</li>
    </ul>
  </body>
</html>

Name: Anonymous 2008-10-04 2:08

>>105
main(){puts("₫₫₫₫₫");}

Name: Anonymous 2008-10-04 3:00

>>92
'dongs dongs dongs dongs dongs'

it's not that hard

Name: Anonymous 2008-10-04 3:52

pintos pintos pintos pintos pintos

Name: Anonymous 2008-10-04 7:48

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns="http://www.w3.org/1999/xhtml">

<xsl:template match="dongs">
  <html>
    <head>
      <title>Repetition</title>
    </head>
    <body>
      <ul>
        <xsl:call-template name="loop">
          <xsl:with-param name="times">5</xsl:with-param>
        </xsl:call-template>
      </ul>
    </body>
  </html>
</xsl:template>

<xsl:template name="loop">
  <xsl:param name="times"/>
  <xsl:if test="$times > 0">
    <li>dongs</li>
    <xsl:call-template name="loop">
      <xsl:with-param name="times"><xsl:value-of select="$times - 1"/></xsl:with-param>
    </xsl:call-template>
  </xsl:if>
</xsl:template>

</xsl:stylesheet>

Name: Anonymous 2008-10-04 8:28

$ echo dongs dongs dongs dongs dongs

Name: Anonymous 2008-10-04 9:50


def print str 1 = print $str + " " end
def print str n = $str + " " + (print n-1) end

print "dongs" 5

Name: Anonymous 2008-10-04 9:58


"DONGS
LETi+=1
IFi>4

Name: Anonymous 2008-10-04 10:03

repeat 5 echo dongs

Name: Anonymous 2008-10-04 11:11

/ 5[/dongs +]rep print

Name: Anonymous 2008-10-04 11:23

What's the language that lets you do something like this:

(print "dongs")*5

?

Name: Anonymous 2008-10-04 11:30

>>118
sequence_ $ replicate 5 $ putStrLn "dongs"

Name: Anonymous 2008-10-04 11:42

5 [ "dongs" print ] times

5.times { puts "dongs" }

Name: Anonymous 2008-10-04 12:14

concat $ repeat [(concat $ replicate 3 "badger badger badger "),"MUSHROOM MUSHROOM"]

Name: Anonymous 2008-10-04 15:41

cycle = concat . repeat

Name: Anonymous 2008-10-04 18:37

repeat = cycle - concat

Name: Anonymous 2008-10-04 18:45

putStr xs = (putChar x)*xs

Name: Anonymous 2008-10-04 21:33

data Mushroom badger = Mushroom badger badger badger badger badger badger badger badger badger
    deriving Snake

Name: Anonymous 2008-10-04 22:13

>>125
Hello, mauke.

Name: Anonymous 2008-10-04 22:18

print (("badger\n"*12+"mushroom\n"*2)*2+"badger\n"*12+"snake a snake oh it's a snake\n\n")*int(raw_input("how many times:"))

Name: Anonymous 2008-10-05 3:12

(format t "~{~a~}" (list "dongs" "dongs" "dongs" "dongs" "dongs"))

Name: Anonymous 2008-10-05 20:09

#include <iostream>

using std:cout;

int main(){
cout << "Dongs Dongs Dongs Dongs Dongs" << endl;
system("PAUSE"); //because fuck you Windows and your immediate closing of my windows with me being far too lazy to make a better solution to your faggotry
}

Name: Anonymous 2008-10-05 20:11

>>129
awww...fuck that noise

Forgot to include "std::endl" and add the second colon in for using std::cout

Name: Anonymous 2008-10-05 20:16

>>129
You might want to open CMD.EXE and run command line programs from the fucking command line, you piece of shit.

Name: Anonymous 2008-10-05 20:24

>>129
Go back to #c++.

Name: Anonymous 2008-10-05 20:26

>>131
Meh. Too lazy.

Name: Anonymous 2008-10-05 23:10

>>131
Back to /b/

Name: Anonymous 2008-10-05 23:19

>>129
The FORCED CLOSING OF YOUR WINDOWS

Name: Anonymous 2008-10-06 0:07

>>134
stfu noob

Name: Anonymous 2009-03-06 13:13

The FIRST TIME BUT BECAUSE SOMETHING WAS   a bit tough   and i liked   best and fuck   THIS BOARD YOU   came from Thanks?

Name: Anonymous 2009-03-06 14:51

Param n expression or.

Name: REPLICATEM_ MEME FAN 2009-04-29 8:55

replicateM_ 5(putStrLn"dongs")

Name: Anonymous 2010-12-17 1:40

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Don't change these.
Name: Email:
Entire Thread Thread List