Skip to main content
1 of 2
MD XF
  • 13.9k
  • 4
  • 66
  • 104

C, 145 139 bytes

c,a;f(){for(;~c;c=getchar())c==43?a++:c==45?a--:c==35?putchar(a%127),a=0:c==36?putchar(a%127):c==37?!~(a=getchar())?exit(0):0:c==33?a=0:0;}

That was easy. I definitely recommend compiling with all warnings off (-w). Will golf.

MD XF
  • 13.9k
  • 4
  • 66
  • 104