We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
Denying machine
Jump to navigation
Jump to search
A denying machine is a machine that does
- reads input
- set A to 0
- label a
- if input!=0:
- output A
- terminate program
- otherwise:
- A+=1
- goes to label a
Interpreters
><>
i:?v nl+<;
node.js
a=i=0;while(!(i=+prompt()))a++;console.log(a)