mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
feat: rewrite programming-challenges CLI (#3)
This commit is contained in:
3
challenges/hello-world/solutions/dart/function/README.md
Normal file
3
challenges/hello-world/solutions/dart/function/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# hello-world/dart/function
|
||||
|
||||
Created by [@Divlo](https://github.com/Divlo) on 6 June 2021.
|
11
challenges/hello-world/solutions/dart/function/solution.dart
Normal file
11
challenges/hello-world/solutions/dart/function/solution.dart
Normal file
@ -0,0 +1,11 @@
|
||||
import 'dart:io';
|
||||
|
||||
String readLineSync() {
|
||||
String? string = stdin.readLineSync();
|
||||
return string == null ? '' : string;
|
||||
}
|
||||
|
||||
void main() {
|
||||
String input = readLineSync();
|
||||
print('Hello, $input!');
|
||||
}
|
Reference in New Issue
Block a user