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
- 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
a=[2,3] 2 in a
-
1 2 3 4 5 6 7 8 9
def main(): gas = int(input("How many gallons of gas does your tank hold: ")) #Collects how much gas mpg = int(input("What is your fuel efficiency in miles per gallon: ")) #collects the miles per gallon miles = int(input("How many miles is your trip: ")) #Collects how long trip is #if statements to have boundaries for the input numbers if gas >= 100: #Gas must be less 100 gallons in a tank print("\nSorry that is too much gas for a tank hold.") print("Try again!\n")
...
-
1 2 3 4 5 6 7 8 9
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:web="http://www.live.com/schemas" style=""> <head> <script type="text/javascript">//<![CDATA[ window["$BSI"]={headTime:(new Date).getTime()};window["$CSIPerf"]={lapse:[{},{s:"h",t:$BSI.headTime}],csd:{},_ttg:$BSI.headTime} //]]></script> <script type="text/javascript">//<![CDATA[ var $CJ={"p":"ifOC3PI84x8hkjAb6gylBebqeQZdgW6C58qNlf3O4qw\u003d0","c":null};
...
-
1 2 3 4 5 6 7 8 9
v = list() i = 0 for i in range(10): a = int(input()) b = int(input()) if ((a+b) % 2 == 0): if (a % 2 == 0):
...
-
1 2
import random random.randomint(1,5)
-
1
print(128*1e6/1024/1024)
-
1
print(256*1e6/1024/1024)
-
1 2 3 4 5 6 7 8 9
import math def meteor(n): r = .01 m = .021 p = 1.2 x = 1.0 v = 0.0 g = 9.8
...
-
1 2 3 4 5 6 7 8 9
import math def meteor(n): r = .01 m = .021 p = 1.2 H = 1.0 g = 9.8 t_max = -x/v*10
...
-
1 2 3 4 5 6 7 8
n = 1 i = 1 while i <= 30: n = n*i i= i+1 print(n)
-
1 2 3 4 5 6
n = 1 i = 1 while i <= 5: n = n*i print(n)
-
1 2 3 4 5 6 7
n = 1 i = 1 while i <= 30 : n = n*i print(n)
-
1 2 3 4 5 6
n = 1 i = 1 while i <= 6 n = n*i print(n)
-
1 2 3 4 5 6 7
import math n = 1 i = 1 while i <= 30 n = n*i print(n)
-
1 2 3 4 5
n = 1 i = 1 while i < int(31) n = n*i print(n)
-
1 2 3 4 5 6 7
import math n = 1 i = 1 while i < 30 n = i*n print(n)
-
1 2 3 4 5 6 7 8
n = int(raw_input("enter a number")) m = int(raw_input("enter another number")) While n!=m: if n != m: if n > m: n = n - m
...
-
1 2 3 4 5
n = int(raw_input("enter a number")) z = int(raw_input("enter another number")) while n !=0
-
1 2 3 4 5
n = int(raw_input("enter a number")) z = int(raw_input("enter another number")) while n !=z
-
1 2 3 4
n = int(raw_input("enter a number")) m = int(raw_input("enter another number")) while n !=m
-
1 2 3 4
n = int(raw_input("enter a number")) m = int(raw_input("enter another number")) while n != m
-
1 2 3 4
n = int(raw_input("enter a number")) m = int(raw_input("enter another number")) while n != b
-
1 2 3 4 5 6 7 8
print("Geldautomat\n~~~~~~~~~~~") Betrag = int(input("Gewunschter Betrag: ")) print("Hier kommt Ihr Geld:") for Schein in [100, 50, 20, 10, 5]: while Betrag >= Schein: Betrag -= Schein print("[",Schein,"] ", sep="", end="") print("\nNicht auszahlbarer Restbetrag:",Betrag)
-
1 2 3 4 5 6 7 8 9
print("Geldautomat\n~~~~~~~~~~~") Betrag = int(input("Gewünschter Betrag: ")) print("Hier kommt Ihr Geld:") for Schein in [100, 50, 20, 10, 5]: while Betrag >= Schein: Betrag -= Schein
...
-
1 2 3 4 5 6 7 8 9
print("Geldautomat\n~~~~~~~~~~~") Betrag = int(input("Gewünschter Betrag: ")) print("Hier kommt Ihr Geld:") for Schein in [100, 50, 20, 10, 5]: while Betrag >= Schein: Betrag -= Schein print("[",Schein,"] ", sep="", end="") print("\nNicht auszahlbarer Restbetrag:",Betrag)
-
1 2 3 4 5 6 7 8 9
i = int(input()) count = int(0) sum = int(0) while count < i: sum = sum + count count = count +1 print(sum)
-
1 2 3 4 5 6 7 8 9
i = int(input()) count = int(0) sum = int(0) while count < i: sum = sum + count count = count +1 print(sum)
-
1 2 3 4 5 6 7
i = int(input()) count = int(0) while count < i: sum = sum + count count = count +1 print(sum)
-
1 2 3 4 5
i = int(input()) count = 0 while count < i: sum = sum + count count = count +1
-
1 2 3 4 5
i = int(input()) count = 0 while count < i: sum = sum + count count = count +1


