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

Let's count to 5

Name: Anonymous 2009-01-31 21:12

ac

Name: Anonymous 2009-01-31 21:15

(\x -> [x .. 5])

Name: Anonymous 2009-01-31 21:37

aaaaac

Name: FIOC 2009-01-31 21:38


for i in xrange(5): print i+1

Name: Anonymous 2009-01-31 21:38


#include <climits> // LONG_MIN
#include <iostream> // cout, endl

using std::cout;
using std::endl;

/* count to 5. there was no defined starting point, so we'll start
 * with LONG_MIN
 */
int main() {
   const long STOP(6L);

   for (long i = LONG_MIN; i < STOP; i++) {
      cout << i << endl;
   }

   return 0;
}

Name: Anonymous 2009-01-31 21:43

for(一..五){ print }

Name: Anonymous 2009-01-31 21:45

[code]ery,.ze5
inc 
inc
inc
aSFfasf  Ay 7ghdfjl;d jko[s tho[

Name: Anonymous 2009-01-31 22:39

main = print c
a = b + 1
b = d + 1
d = e + e
c = a + 1
e = 1

Name: Anonymous 2009-01-31 22:43

λf.λx.(f (f (f (f (f x)))))

Name: Anonymous 2009-01-31 22:53

main = print $ sum (f 2) + 1
   where f 0 = [1]
         f x = (sum (f (x-1))):(f (x-1))

Name: Anonymous 2009-02-01 0:04

#!/usr/bin/perl -l
sub add { return $_[0] + $_[1] }
sub cadd { $a = $_[0]; return sub { add($a, $_[0]) }}
for $i (0..4) { eval("print cadd(1)->("."cadd(1)->("x$i."0)".")"x$i); }

Name: Anonymous 2009-02-01 0:14

int x;
while(++x != 5);

Name: >>11 2009-02-01 0:14

damnit, clean up that last line
for $i (1..5) { eval("print " . "cadd(1)->(" x $i . "0" . ")" x $i) }

Name: Anonymous 2009-02-01 3:52

Sub
Dim intFive As Integer
Do Until intFive = 5
intFive = intFive + 1
Loop
End Sub

Name: Anonymous 2009-02-01 4:25


using System;
using System.Collections.Generic;
using System.Text;

namespace CountApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = 1;
            while (x <= 5)
            {
                Console.WriteLine(x);
                x++;
            }

            Console.ReadKey(); // we want to be able to see our numbers
        }
    }
}

Name: Anonymous 2009-02-01 20:19


<?php
define('D', 5);
$O = 0;
while($O++!==D) print $O;

Name: Anonymous 2009-02-01 20:42

#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>

int main(void){
 for(intmax_t i = INTMAX_MIN; i <= 5; printf("%" PRIdMAX, i++));
 return 0;
}

Name: Anonymous 2009-02-01 20:46

1
2
3
4
5

I win.

Name: Anonymous 2009-02-01 21:00

/*
 * CountToFive.java
 *
 * Version:
 *     $Id$
 *
 * Revisions:
 *     $Log$
 */

/**
 * A Program That Counts To Five
 *
 * @author      /prog/
 *
 */

public class CountToFive {

/**
 * A main method
 *
 */
    public static void main(String[] args) {
   
    System.out.println("1\n2\n3\n4\n5");

        // Prints 1 to 5
    }

} // CountToFive

Name: Anonymous 2009-02-01 21:25

<?php
  $O = "8====D";
  for($i=0; i<strlen($O); ++$i){
    echo $i+1;
  }
?>

Name: Anonymous 2009-02-01 22:46

>>19
lrn2, fgt

Name: Anonymous 2009-02-01 22:50

>>20
That counts to six, dude.

Name: Anonymous 2009-02-01 23:21

(list* 1 2 3 4 5 '(6))

Name: Anonymous 2009-02-01 23:24

10 LET I = 1
20 PRINT I
30 LET I = I + 1
40 GOTO 20

Name: Anonymous 2009-02-01 23:30

>>22
Six inches

Name: Anonymous 2009-02-02 3:19

for (int x = 1; x <=5; x++)
      cout << x << endl;

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !FrOzEn2BUo 2009-02-02 5:00

for(var i in [null,Infinity,undefined,Error,true]){alert((parseInt(i))+alert.length)};


_________________________
orbis terrarum delenda est
 http://xs135.xs.to/xs135/09042/av922.jpg

Name: Anonymoos 2009-02-02 9:59

For x As Integer = 0 to 4
  Console.Writeline(x + 1)
Next

Name: Anonymous 2009-02-02 10:03

for(var i in [null,Infinity,undefined,Error,true]){alert((parseInt(i))+alert.length)};

Which language is this?

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !FrOzEn2BUo 2009-02-02 10:06

x=0;while(x++<5){alert(x)}

_________________________
orbis terrarum delenda est
 http://xs135.xs.to/xs135/09042/av922.jpg

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !FrOzEn2BUo 2009-02-02 10:07

>>29
JavaScript


_________________________
orbis terrarum delenda est
 http://xs135.xs.to/xs135/09042/av922.jpg

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !FrOzEn2BUo 2009-02-02 10:10

for(x=0;x<5;alert(++x)){}


_________________________
orbis terrarum delenda est
 http://xs135.xs.to/xs135/09042/av922.jpg

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !FrOzEn2BUo 2009-02-02 10:14

i=5;while(i--){alert(5-i)}



_________________________
orbis terrarum delenda est
 http://xs135.xs.to/xs135/09042/av922.jpg

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !FrOzEn2BUo 2009-02-02 10:16

i=c=5;while(i--){alert(c-i)}



_________________________
orbis terrarum delenda est
 http://xs135.xs.to/xs135/09042/av922.jpg

Name: Anonymous 2009-02-02 10:19

Oh, for God's sake, FV!

Was that REALLY necessary

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !FrOzEn2BUo 2009-02-02 10:22

>>35
I feel ‌i‌n‌s‌p‌i‌r‌a‌t‌i‌o‌n‌.
_________________________
orbis terrarum delenda est
 http://xs135.xs.to/xs135/09042/av922.jpg

Name: Anonymous 2009-02-02 11:32

I still wait for "GRUNNUR".

Name: Anonymous 2009-02-02 14:28

"telja" < main
{
    main ->
        stef(;)
        stofn
            telja(1,5),
        stofnlok
}
*
{
    telja ->
        stef(;m,n)
        staðvær i
        stofn
            fyrir( i := m; i <= n; i := i+1) lykkja
                skrifa(;i),
                skrifastreng(;"\n"),
            lykkjulok,
        stofnlok
}
*
"GRUNNUR"
;

Name: Anonymous 2009-02-02 15:55

import countto5

Name: Anonymous 2009-02-02 16:11

hax :: String -> String
hax a | a  == "HaX mY aNuS" = [ b | b <- a, elem b ['A'..'Z']]
count :: String -> [String]
count a | a == "HaX mY aNuS" = do i <- [1..length (hax a)]
                                  [show i]
main = mapM_ putStrLn (count "HaX mY aNuS")

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