Skip to main content
added 7 characters in body
Source Link
Cody
  • 475
  • 2
  • 6

#Processing, 51 4242 41 bytes

for(int i=0;i<121;i++i=0;i<121;)print(year()-i+"i+++" ");

#Ungolfed

for(int i = 0; i < 121; i++)
    print(year() - ii++ + " ");

Processing is just a wrapper for Java if you didn't know, and takes most of the boilerplate away, so the obvious solution is also super short compared to a Java version. Also opens a window for drawing graphics, but having that doesn't appear to disqualify me :)

#Processing, 51 42 bytes

for(int i=0;i<121;i++)print(year()-i+" ");

#Ungolfed

for(int i = 0; i < 121; i++)
    print(year() - i + " ");

Processing is just a wrapper for Java if you didn't know, and takes most of the boilerplate away, so the obvious solution is also super short compared to a Java version. Also opens a window for drawing graphics, but having that doesn't appear to disqualify me :)

#Processing, 51 42 41 bytes

for(int i=0;i<121;)print(year()-i+++" ");

#Ungolfed

for(int i = 0; i < 121;)
    print(year() - i++ + " ");

Processing is just a wrapper for Java if you didn't know, and takes most of the boilerplate away, so the obvious solution is also super short compared to a Java version. Also opens a window for drawing graphics, but having that doesn't appear to disqualify me :)

Source Link
Cody
  • 475
  • 2
  • 6

#Processing, 51 42 bytes

for(int i=0;i<121;i++)print(year()-i+" ");

#Ungolfed

for(int i = 0; i < 121; i++)
    print(year() - i + " ");

Processing is just a wrapper for Java if you didn't know, and takes most of the boilerplate away, so the obvious solution is also super short compared to a Java version. Also opens a window for drawing graphics, but having that doesn't appear to disqualify me :)