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

Count to 10

Name: Anonymous 2010-06-17 15:14

Lets see if /prog/ can count to 10 in C. I'll start:

int main(void){

Name: Anonymous 2010-06-18 1:01


class one210():
  def __init__(self):
    self.n = 0 #ALWAYS INIT UR VARS
  def count(self, by):
    self.n += by
  def show(self):
    print self.n

one2ten = one210()
i = 0
while i < 10:
  one2ten.count(1)
  one2ten.show()
  i += 1

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