Answers for "dart get String input from user"

1

dart get String input from user

import 'dart:io'; 
  
void main() 
{ 
    print("Enter your name?"); 
    // Reading name of the Geek 
    String name = stdin.readLineSync(); 
  
    // Printing the name 
    print("Hello, $name! \nWelcome to GeeksforGeeks!!"); 
}
Posted by: Guest on November-08-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language