Skip to main content
added 58 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

Bash + sed, 41 4040 38 bytes

echo $[n=10+0$[n=10/1]
sed -i s/$n/$[n-1]/g $0

Try it online! (ignore the SELinux warnings)Try it online!

Bash + sed, 41 40 bytes

echo $[n=10+0/1]
sed -i s/$n/$[n-1]/g $0

Try it online! (ignore the SELinux warnings)

Bash + sed, 41 40 38 bytes

echo $[n=10/1]
sed -i s/$n/$[n-1]/g $0

Try it online!

added 128 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

Bash + sed, 41 40 bytes

echo $[n=10+0/1]
sed -i s/$n/$[n-1]/g $0

Try it online! (ignore the SELinux warnings)

Bash + sed, 41 40 bytes

echo $[n=10+0/1]
sed -i s/$n/$[n-1]/g $0

Bash + sed, 41 40 bytes

echo $[n=10+0/1]
sed -i s/$n/$[n-1]/g $0

Try it online! (ignore the SELinux warnings)

deleted 1 character in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

Bash + sed, 4141 40 bytes

echo $[n=10,n*n$[n=10+0/n]1]
sed -i s/$n/$[n-1]/g $0

Bash + sed, 41 bytes

echo $[n=10,n*n/n]
sed -i s/$n/$[n-1]/ $0

Bash + sed, 41 40 bytes

echo $[n=10+0/1]
sed -i s/$n/$[n-1]/g $0
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825
Loading