Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import 'dart:io';
void main() {
int count = 0;
while(true) {
print('Counter: $count');
stdout.write('Enter i/d/r/q: ');
String? input = stdin.readLineSync();
if(input == 'i') count++;
else if(input == 'd') count--;
else if(input == 'r') count = 0;
else if(input == 'q') break;
}
}Coding works best on desktop or with an external keyboard.