Skip to main content
added 15 characters in body
Source Link
Cristian Lupascu
  • 8.7k
  • 2
  • 26
  • 52

Golfscript

This program prints some digits that always sum up to 2, regardless of how the program is shifted:

10 2 base 0 2 base1 2 base10 2 base10 base10 2 base10 2 ase10 2 b se10 2 ba e10 2 bas 

The first line prints 1010 (10 in binary), the second line prints 02 and all the other lines print 2.

Update:

The program can be tested here. Please note that I've added ns at the end of each row only for formatting the output; these can be removed and the program still works.

Golfscript

This program prints some digits that always sum up to 2, regardless of how the program is shifted:

10 2 base 0 2 base1 2 base10 2 base10 base10 2 base10 2 ase10 2 b se10 2 ba e10 2 bas 

The first line prints 1010 (10 in binary), the second line prints 02 and all the other lines print 2.

The program can be tested here. Please note that I've added ns at the end of each row only for formatting the output; these can be removed and the program still works.

Golfscript

This program prints some digits that always sum up to 2, regardless of how the program is shifted:

10 2 base 0 2 base1 2 base10 2 base10 base10 2 base10 2 ase10 2 b se10 2 ba e10 2 bas 

The first line prints 1010 (10 in binary), the second line prints 02 and all the other lines print 2.

Update:

The program can be tested here. Please note that I've added ns at the end of each row only for formatting the output; these can be removed and the program still works.

added test link
Source Link
Cristian Lupascu
  • 8.7k
  • 2
  • 26
  • 52

Golfscript

This program prints some digits that always sum up to 2, regardless of how the program is shifted:

10 2 base 0 2 base1 2 base10 2 base10 base10 2 base10 2 ase10 2 b se10 2 ba e10 2 bas 

The first line prints 1010 (10 in binary), the second line prints 02 and all the other lines print 2.

The program can be tested here. Please note that I've added ns at the end of each row only for formatting the output; these can be removed and the program still works.

Golfscript

This program prints some digits that always sum up to 2, regardless of how the program is shifted:

10 2 base 0 2 base1 2 base10 2 base10 base10 2 base10 2 ase10 2 b se10 2 ba e10 2 bas 

The first line prints 1010 (10 in binary), the second line prints 02 and all the other lines print 2.

Golfscript

This program prints some digits that always sum up to 2, regardless of how the program is shifted:

10 2 base 0 2 base1 2 base10 2 base10 base10 2 base10 2 ase10 2 b se10 2 ba e10 2 bas 

The first line prints 1010 (10 in binary), the second line prints 02 and all the other lines print 2.

The program can be tested here. Please note that I've added ns at the end of each row only for formatting the output; these can be removed and the program still works.

added 42 characters in body
Source Link
Cristian Lupascu
  • 8.7k
  • 2
  • 26
  • 52

Golfscript

This program prints some digits that always sum up to 2, regardless of how the program is shifted:

10 2 base 0 2 base1 2 base10 2 base10 base10 2 base10 2 ase10 2 b se10 2 ba e10 2 bas 

The first line prints 1010 (10 in binary), the second line prints 02 and all the other lines print 2.

Golfscript

This program prints some digits that always sum up to 2:

10 2 base 0 2 base1 2 base10 2 base10 base10 2 base10 2 ase10 2 b se10 2 ba e10 2 bas 

The first line prints 1010 (10 in binary), the second line prints 02 and all the other lines print 2.

Golfscript

This program prints some digits that always sum up to 2, regardless of how the program is shifted:

10 2 base 0 2 base1 2 base10 2 base10 base10 2 base10 2 ase10 2 b se10 2 ba e10 2 bas 

The first line prints 1010 (10 in binary), the second line prints 02 and all the other lines print 2.

Source Link
Cristian Lupascu
  • 8.7k
  • 2
  • 26
  • 52
Loading