1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-11-09 22:08:58 +01:00
programming-challenges/challenges/hello-world/solutions/dart/function/solution.dart

12 lines
202 B
Dart

import 'dart:io';
String readLineSync() {
String? string = stdin.readLineSync();
return string == null ? '' : string;
}
void main() {
String input = readLineSync();
print('Hello, $input!');
}