3 ms·
Structured programming: how to write proper if statements
- Someone 6y ago“the two ideas gave birth to the if statement that we know today: if (input less than waterleve) { turn motor on } else if (input less than waterleve) { turn motor off } else { ... “ And to the classical copy-paste bug ;-)