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

Pages: 1-4041-8081-

First homework of new year!!

Name: Anonymous 2010-01-01 23:19

Let X be an integer.

1) Read in integer X from standard input
3) Let Y be X multiplied by 2
4) output "SUSSMAN!!!!!!" Y times

Name: Anonymous 2010-01-01 23:30

#include <stdio.h>

int main ()
{
    int x;
   
    for (scanf("%d", &x); x > 0; x--)
        printf("SUSSMAN\n");
   
    return 0;
}

Name: Anonymous 2010-01-01 23:31

>>2
me being a faggort

Excuse me.

#include <stdio.h>

int main ()
{
    int x;
   
    for (scanf("%d", &x), x *= 2; x > 0; x--)
        printf("I CANNOT READ MY ASSIGNMENT\n");
   
    return 0;
}

Name: Anonymous 2010-01-01 23:33

(( Y = `head -1` * 2 )); while (( Y-- )); do echo -n 'SUSSMAN!!!!!!'; done

Name: Anonymous 2010-01-01 23:41

<script type="text/javascript">

var times = prompt("How many Sussmen?", "1");

for (i=0;  i < times;  i++) {
  document.write("Sussmen!<br>\n");
}

</script>

Name: Anonymous 2010-01-01 23:43

>>5
ah shit, /s/Sussmen/SUSSMAN!!!!!!/ ... also code tags.

<script type="text/javascript">

var times = prompt("How many Sussmen?", "1");

for (i=0;  i < times;  i++) {
  document.write("SUSSMAN!!!!!!<br>\n");
}

</script>

Name: Anonymous 2010-01-01 23:44

putStr.unlines.flip replicate "SUSSMAN!!!!!!".(*2).read =<< getLine

Name: Anonymous 2010-01-01 23:48

>>7

(≖_≖)

What pig disgusting language is that?

Name: Anonymous 2010-01-01 23:51

why is everyone stupid


main =
  x <- readLine
  y <- return $ x * 2
  replicateM_ y $ putStrLn "SUSSMAN!!!!!!"

Name: 9 2010-01-01 23:55

>>9
s/readLine/readLn/

>>7
readLn >>= (flip replicateM_ (putStrLn "SUSSMAN!!!!!!")).(*2)

Name: Anonymous 2010-01-02 0:18

Malkovich Sussman! Malkovich "Sussman!!!!!!"

Malkovich ::Sussman Malkovich(Malkovich x) --
    Malkovich y Malkovich x<< Malkovich 2
    Malkovich ... y --
        Malkovich::println Malkovich Sussman!
    Malkovich Malkovich
Malkovich Malkovich

Malkovich ::Malkovich Malkovich() --
    Malkovich x Malkovich Malkovich::readln
    Malkovich::Sussman Malkovich x
Malkovich Malkovich

Malkovich::Malkovich

Name: Anonymous 2010-01-02 0:30

>>11
Oh dang, I left out a Malkovich. I'm not even joking.

Name: Anonymous 2010-01-02 2:45


print ["Sussman\n"*int(raw_input())*2][:-1]

Name: Anonymous 2010-01-02 2:46

DISREGARD >>13 I SUCK CAWKS

print ("Sussman\n"*int(raw_input())*2)[:-1]

Name: Anonymous 2010-01-02 3:41

(dotimes _ (* (read) 2) (print "SUSSMAN!!!!!!"))

Name: Anonymous 2010-01-02 6:21


(STDIN.read.to_i*2).times{puts("SUSSMAN!!!!!!")}

Name: Anonymous 2010-01-02 6:38

print"SUSSMAN!!!!!!\n"x+int<>*2

PERL FUCK YES

Name: Anonymous 2010-01-02 7:04

p"X=" r *$0,2 :0 =0 [ g99 ] p"SUSSMAN!!!!!!" - g0 :99

Expert programming language.

Name: Anonymous 2010-01-02 7:20

       IDENTIFICATION DIVISION.
       PROGRAM-ID.             PRINT-SUSSMAN.
       AUTHOR.                 ANONYMOUS.

       DATA DIVISION.
       WORKING-STORAGE SECTION.
       01 TEXT-OUT             PIC X(13) VALUE 'SUSSMAN!!!!!!'.
       01 LOOP                 PIC 9(8)  VALUE ZERO.
       01 NUM-TIMES            PIC 9(8)  VALUE ZERO.

       PROCEDURE DIVISION.
       MAIN-PARAGRAPH.
         ACCEPT NUM-TIMES.
         MULTIPLY NUM-TIMES BY 2 GIVING NUM-TIMES.
         PERFORM VARYING LOOP FROM NUM-TIMES BY -1 UNTIL LOOP = 0
           DISPLAY TEXT-OUT
         END-PERFORM
       STOP RUN.

Name: Anonymous 2010-01-02 8:53

print'SUSSMAN'*(int(raw_input('')*2)

Name: Anonymous 2010-01-02 12:35

("SUSSMAN!!!!!!"xx$*IN.get*2)».say

PERL6 FUCK YES

Name: Anonymous 2010-01-02 12:50

(use-modules (ice-9 readline))
(let loop ((n (* 2 (string->number (readline)))))
  (if (> n 0)
    (begin
      (display "SUSSMAN!!!!!!\n")
      (loop (- n 1)))))


first scheme program evar, true fact

Name: Anonymous 2010-01-02 13:02

>>22
1-armed ifs are ugly, use when since it makes it clear that there is no alternative case.

[code](let ((y (* 2 (read))))
    (do ((x 0 (+ x 1)))
        ((> x y))
        (display "SUSSMAN!!!!!!")
        (newline)))[code]

Name: Anonymous 2010-01-02 13:10

>>21
I'm so scared of Perl6. I understand your post and all, it's just that I'm going to be shitting hypermeta operators by the time I've written my first program in it.

Name: Anonymous 2010-01-02 14:47

Obligatory Java crap.

import java.io.*;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.lang.Float;
import java.lang.Integer;
import java.lang.Math;
import java.lang.NumberFormatException;

// Filename is "Sussman.java"
public class Sussman
{
   public static void main(String[] args)
   {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int X = 0, Y = 0;
      String str = br.readLine();
      System.out.println("");
      try
      {
         if(X.indexOf(".") != -1)
         {
            X = Math.round(Float.parseFloat(str));
         }
         else
         {
            X = Integer.parseInt(str);
         }
      }
      catch(NumberFormatException nf_e)
      {
         X = 1;
      }
      Y = X * 2;
      for(X = 0; X < Y; X++)
      {
         System.out.println("SUSSMAN!!!!!!");
      }
   }
}

Name: Anonymous 2010-01-02 14:49

>>19
You are my hero.

Name: Anonymous 2010-01-02 14:49

>>25

( ≖_≖)

Name: Anonymous 2010-01-02 15:20

SCHQIILLLLLLLLLLL

Name: Anonymous 2010-01-02 15:27

Hello /prog/ I'm a first year computer science student how do you like my code?
I hope this helps with your homework!

<?php
/////////////////////////////////////////////////////
// Prints exactly as many Sußmen as the user wants
// Copyright © 2010 me
//////////////////////////////////
// ALL RIGHTS RESERVERD
//////////////////////////////////////////////////

echo "How many Sußmen do you want? "

;$amount = ''; # for some reason I need the ; at the beginning here. PHP is buggy lol

$myStandardInFileHandle = fopen('php://stdin', 'r'); # Thanks Joe!
#$amount = fread($myStandardInFileHandel, 999999))
# $amount = fread($myStandardInFileHandle = fopen('php://stdin', 'r');
$amount = fgets($myStandardInFileHandle, 999999); # Thanks #php!

##for($amount = 0; $amount < $amount; $amount + 1) { # why isn' this working?
#while($i > $amount) {
$myLoopCounterVariable = 1;
    while($i < $amount) {$myLoopCounterVariable=$myLoopCounterVariable+1;
if($myLoopCounterVariable % 2 == 0){$i=$i+1;} # WOW PHP is cool!
echo "SUßMAN!!!!!!\n";}

echo "SUßMAN!!!!!!\n"; # for some reason the loop dies too early :(

?>

Name: Anonymous 2010-01-02 15:32

>>26
Why? Do you actually like COMMON ENTERPRISEBUSINESS-ORIENTED LANGUAGE

Name: Anonymous 2010-01-02 15:42

# for some reason I need the ; at the beginning here. PHP is buggy lol
$myLoopCounterVariable = 1;
# for some reason the loop dies too early :(

10/10 I raged.

Name: Anonymous 2010-01-02 15:45

| »
is valid Perl6 code?

Name: Anonymous 2010-01-02 15:49

>>31
learn
to
quote
before
you
rage

Name: Anonymous 2010-01-02 16:05

>>32
Yes.

Name: Anonymous 2010-01-02 16:09

>>32
Yes. « and » are called the hyperoperators.

The example in >>21 applies calls the method say for each member of the list filled with Sussmen. It can be used for many other purposes too, though.

For example (1,2,3) «+« 1 increments each value of the left-hand list by 1.

( (1,2,3) «/« 2 )».say
=> 0.5
1
1.5

Name: Anonymous 2010-01-02 16:12

>>34
Awesome, too bad I'll probably be dead by the time it come out.

Name: Anonymous 2010-01-02 16:13

>>36
The first major release of Rakudo, Rakudo Star, is planned for release in April 2010.

The current Perl 6 is quite usable. There are more than a few rough edges, but overall it's very nice.

Name: Anonymous 2010-01-02 16:44

>>29
What the fuck.
It took me a while till I could get my head around what that 'loop' actually does. 10/10, if only for the amount of effort and polish that went into that post.

Name: Anonymous 2010-01-02 22:38

echo str_repeat("SUSSMAN!!!!!!\n", fgets(STDIN)*2);

Name: Anonymous 2010-01-02 22:47

//C# wankery
using System;

class Program
{
    static void Main(string[] args)
    {
        for (; ; )
        {
            try
            {
                for (int c = 0, n = Convert.ToInt32(Console.ReadLine()); c < n; ++c)
                {
                    Console.WriteLine("SUSSMAN!");
                }
            }
            catch
            {
                continue;
            }
            break;
        }
    }
}

Name: Anonymous 2010-01-02 22:48

write an IRC bot that pretends to be a real person

Name: Anonymous 2010-01-03 0:14


int foo; scanf("%d", &foo);
while (foo --> 0) {
    printf("SUSSMAN!\n");
}

Name: Anonymous 2010-01-03 0:20

>>42
-->
The C Arrow Operator

Name: Anonymous 2010-01-03 0:24

>>43
It's the "goes to" operator according to the ANSI standard.

Name: Anonymous 2010-01-03 2:06

(loop repeat (* 2 (read)) do (print "SUSSMAN!!!!!!"))

Name: Anonymous 2010-01-03 7:20

+++++++[>++++++++++++<-]>-[>+>+>+>+>+>+>+<<<<<<<-]>>++>>>------>------------------>----->>++++[<++++++++>-]<+>++++++++++>,>++++++[<-------->-]<[>++<-]>[<<<<<<<<<<.>.>.>.>.>.>.>.....>.>>-]

Name: Anonymous 2010-01-03 8:01

Name: Anonymous 2010-01-03 19:03

for i = 1, io.read() * 2 do print"Sussman" end

Name: Anonymous 2010-01-03 19:06

>>47
I thought it was sort of funny.

Name: Anonymous 2010-01-03 22:51


x = gets.chomp.to_i
y = x * 2
y.times { puts "SUSSMAN!!!!!!" }


I get bonus points for following directions.

Name: Anonymous 2010-01-04 1:09

>>46
very nice

Name: Anonymous 2010-01-04 1:31

>>51
Why, thank you.

Name: Anonymous 2010-01-04 1:50

Why do all your homeworks involve printing sussmen?

Name: Anonymous 2010-01-04 9:00

>>53
I think this guy's onto us.

Name: Anonymous 2010-01-04 9:07

>>53
That's not true, sometimes we print Ablesons and Cudders

Name: Anonymous 2010-01-04 10:09

>>53
if you got a better idea why dont you share it with us?

Name: Anonymous 2010-01-04 10:52

>>56
Print FrozenVoids

Name: HAXUS THE CAMELFUCKER 2010-01-04 11:16

>>57
I beg to disagree.

Name: Anonymous 2010-01-04 11:26

>>58
that's no beg. you've got to put some beg into it

Name: Anonymous 2010-01-04 11:47

I DEMAND TO DISAGREE!!

Name: Anonymous 2010-01-04 12:33

>>1
1. Where's 2)?
2. Now you have two problems.

Name: Anonymous 2010-01-05 8:58

>>60
We do not negotiate with Sepples terrorists.

Name: Anonymous 2010-01-05 18:25

>>62
NEGOTIATE MY ANUS

Name: Anonymous 2010-01-05 18:29

>>63
ONLY IF YOU NEGOTIATE MINE

Name: HAXUS THE PANHANDLER 2010-01-05 18:35

>>59
Hey, kid, you got a minute? You wanna know how I got this scar? I got this in Vietnam, kid, in the shit. We used to throw captives' families out of helicopters to make them talk. Horrible, kid, but they made us do it. You wouldn't believe. Anyway, once they wanted me to throw out a little kid. A little kid! It was horrible, I couldn't do it. But then the little fucker slashed at me with a knife. Say, kid, you got any differing opinions for this starving veteran? I need to disagree, kid. I gotta disagree!

Name: Anonymous 2010-01-05 22:34

//Standard C++

#include <iostream>

int main()
{
 int x, y;
 
 cin >> x;

 y = x * 2;

 for( int i = 0; i <= y; ++i )
     cout << "SUSSMAN!" << endl;

return 0;
}

Name: Anonymous 2010-01-05 22:41

>>65
They made you use Sepples in Vietnam? I'd have scars too. I weep for your losses.

Name: Anonymous 2010-01-06 5:47

#!C:\xampp\php\php.exe -q
<?php
isset($_SERVER['argv'][1]) ?
    $max = $_SERVER['argv'][1] * 2 :
    $max = 0;
for($i = 0; $i < $max; ++$i)
    echo "Sussman!!!!!!\r\n";
?>

Name: Anonymous 2010-01-06 6:09

oh, hurrdurr
1) Read in integer X from standard input
standard input

#!C:\xampp\php\php.exe -q
<?php
fwrite(STDOUT, "Enter >0 to Suss, 0 to quit\r\n");
do {
    fscanf(STDIN, "%d\n", $max);
    $max *= 2;
    for($i = 0; $i < $max; ++$i)
       fwrite(STDOUT, "Sussman!!!!!!\r\n");
} while ($max != 0)
?>

Name: dasuraga !8GgBtN/zr. 2010-01-06 13:02

>>66
how  are you not even able to make a for loop  run the right number of times?
FENCEPOST ERRORS, PEOPLE! DON'T DO THEM!

Name: Anonymous 2010-01-06 13:21

>>70
Not to mention not doing
std::cin

Name: Anonymous 2010-01-06 13:22

#define as while
printf("Requested number of Sussmen: ");
int x;
x = scanf("%d", &x);
printf("\n");
int y = x << 1;
as (y --> 0)
    printf("%s\n", "SUSSMAN!!!!!!");

Name: Anonymous 2010-01-06 13:41

>>71
Not to mention Sepples.

Name: Anonymous 2010-01-06 14:00

(y --> 0) is the goes to operator

Name: Anonymous 2010-01-06 14:27

>>74
You're wrong, the operator is just -->.

Name: Anonymous 2010-01-06 15:13

>>74
Excuse me kudasai, but goto is the goes to operator.

Name: Anonymous 2010-01-06 15:18

Excuse me kudasai
(ಠ‿ʘ) < lol wut

Name: Anonymous 2010-01-06 15:23

>>77
Excuse me kudasai.

Name: Anonymous 2010-01-06 15:25

>>78
Sageru kudasai.

Name: Anonymous 2010-01-06 15:31

>>79
Sagete kudasai.

Name: Anonymous 2010-01-06 16:39

>>78
EXCUSE MY KUDASAI

Name: EMK MEME FAN 2010-01-06 17:48

epic lulz rofl xd

Name: Anonymous 2010-01-06 18:40

This is currently the highest rated thread on Reddit, and the top 2 posts also have over 1000 upvotes each

http://www.reddit.com/r/funny/comments/alwm7/my_9_year_old_cousin_and_i_are_playing_a_game_of/

* Hilarity ensues!

Name: Anonymous 2010-01-06 20:28

>>80
このスレドを下げてもいいか?

Name: Anonymous 2010-01-07 10:36

>>84
ハックスマイエイナス。

Name: Anonymous 2012-03-26 11:47

Intel GET

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