Advertisement
31ph4n70m

reverse_string.dart

Nov 19th, 2019
627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.26 KB | None | 0 0
  1. // Dart solution to codeabbey challenge 30
  2. // import 'dart:io';
  3.  
  4. void main() {
  5.     // var inp = stdin.readLineSync()
  6.     var inp = "on fare supper off shelf jeopardy about cactus";
  7.     var t = new String.fromCharCodes(inp.runes.toList().reversed);
  8.     print(t);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement