Recent public codes are listed below. You can filter them by the following programming languages:
- view
- All
- Ada
- Assembler
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
- C#
- C++
- C++0x
- C99 strict
- CLIPS
- Clojure
- COBOL
- COBOL 85
- Common Lisp (clisp)
- D (dmd)
- Erlang
- F#
- Factor
- Falcon
- Forth
- Fortran
- Go
- Groovy
- Haskell
- Icon
- Intercal
- Java
- Java7
- JavaScript (rhino)
- JavaScript (spidermonkey)
- Lua
- Nemerle
- Nice
- Nimrod
- Objective-C
- Ocaml
- Oz
- Pascal (fpc)
- Pascal (gpc)
- Perl
- Perl 6
- PHP
- Pike
- Prolog (gnu)
- Prolog (swi)
- Python
- Python 3
- R
- Ruby
- Scala
- Scheme (guile)
- Smalltalk
- SQL
- Tcl
- Text
- Unlambda
- VB.NET
- Whitespace
-
1 2 3 4 5 6 7
var x=0; for(i=10;i>=200;i++){ var resto=i%5; if(resto==0){ document.write(i); x=x+i}} document.write(x);
-
1 2 3 4 5 6 7 8
var i; var total = 0; for(i=1;i<1000;i++){ if ((i%3===0)||(i%5===0)){ total += i; } } print(total);
-
1 2 3 4 5 6 7 8
var i; var total = 0; for(i=1;i<10;i++){ if ((i%3===0)||(i%5===0)){ total += i; } } print(total)
-
1 2 3 4 5 6 7
var i; var total = 0; for(i=1;i<10;i++){ if ((i%3===0)||(i%5===0)){ total += i; } }
-
1 2 3 4 5 6
var i; for(i=1;i<10;i++){ if ((i%3===0)||(i%5===0)){ print(i) } }
-
1 2 3 4 5 6
var i; for(i=1;i<=10;i++){ if ((i%3===0)||(i%5===0)){ print(i) } }
-
1 2 3 4
var i; for(i=1;i<=1000;i++){ print(i) }
-
1 2 3 4
var i; for(i=0;i<20;i++){ print(i) }
-
56 days 16 hours ago view (lines: 113, size: 3570, inputs: 1) JavaScript (spidermonkey) Runtime error
1 2 3 4 5 6 7 8 9
import java.io.*; public class Assignment9 { /*Method to find the minimum number from the input array */ public static int findMin(int[] numbers, int startIndex, int endIndex) { if ( startIndex > 0 ) {
...
-
1 2 3 4 5 6 7 8 9
public class Prova { public static void main(String args[]){ int k, m; double n; k = 11; m = 2; n = k/m; System.out.println("k = " + k); System.out.println("m = " + m);
...
-
1 2 3
while((num = readline()) != 42) { print(num); }
-
56 days 21 hours ago view (lines: 61, size: 1778, inputs: 2) JavaScript (spidermonkey) Runtime error
1 2 3 4 5 6 7 8 9
import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.net.Socket; import java.net.UnknownHostException; /** * TcpClient.java *
...
-
56 days 21 hours ago view (lines: 61, size: 1778, inputs: 2) JavaScript (spidermonkey) Runtime error
1 2 3 4 5 6 7 8 9
import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.net.Socket; import java.net.UnknownHostException; /** * TcpClient.java *
...
-
56 days 21 hours ago view (lines: 61, size: 1784, inputs: 2) JavaScript (spidermonkey) Runtime error
1 2 3 4 5 6 7 8 9
import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.net.Socket; import java.net.UnknownHostException; /** * TcpClient.java *
...
-
56 days 21 hours ago view (lines: 61, size: 1784, inputs: 2) JavaScript (spidermonkey) Runtime error
1 2 3 4 5 6 7 8 9
import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.net.Socket; import java.net.UnknownHostException; /** * TcpClient.java *
...
-
56 days 21 hours ago view (lines: 234, size: 7255, inputs: 1) JavaScript (spidermonkey) Runtime error
1 2 3 4 5 6 7 8 9
//TcpClient.java ------------------------------------------------------------------------------------------------------------------------- import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.net.Socket; import java.net.UnknownHostException; /**
...
-
1 2 3 4 5 6
function addFunction(num){ var fun =function(num2){ return num+num2} num++; return fun; } console.log(addFunction(5)(5));
-
1 2 3
var something = new String(); something = "Algo"; echo something;
-
1 2 3
while((num = readline()) != 42) { print(num); }
-
1
-
1 2
function foo() {1+1;} print(foo());
-
1 2
function foo() {1+1;} print(foo());
-
1 2
funtion foo() {1+1;} print(foo());
-
1 2 3
function foo() { 1+3; } alert(foo());
-
1 2 3 4 5 6
import java.util.Random; class Main{ public static void main(String a[]){ System.out.println("random numbers = "+(int)(Math.random()*6)); } }
-
1 2 3 4 5 6 7 8 9
public class aula2 { /** * Estrutura básica */ public static void main(String[] args) { // abaixo declaração de variável double result, valor1, valor2, valor3, valor4;
...
-
1 2 3 4 5 6 7 8 9
class Main { public static void main (String[] args) throws java.lang.Exception { java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in)); String s; while (!(s=r.readLine()).startsWith("42")) System.out.println(s); } }
-
1 2 3 4 5 6 7 8
<html> <head> <script language="JavaScript"> <!-- hide function vrmlScene() { vrml= open("", "displayWindow", "width=500,height=400,status=yes,toolbar=yes,menubar=yes");
...
-
1
alert("Hola");
-
1 2 3 4 5 6 7 8 9
var date = new Date; var drawFlag = false; var oldX = 0; var oldY = 0; window.addEventListener("load", function(){ var can = document.getElementById("myCanvas"); can.addEventListener("mousemove", draw, true); can.addEventListener("mousedown", function(e){ drawFlag = true;
...


