Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

Dart integer User input

import 'dart:io';

void main() {
  int value = stdin.readIntSync();
  print(value);
}

extension ReadIntSyncOnStdin on Stdin {
  int readIntSync() => int.parse(this.readLineSync());
}
Source by www.reddit.com #
 
PREVIOUS NEXT
Tagged: #Dart #integer #User #input
ADD COMMENT
Topic
Name
1+2 =