Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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! 
Welcome to GeeksforGeeks!!"); 
} 
 
PREVIOUS NEXT
Tagged: #dart #String #input #user
ADD COMMENT
Topic
Name
5+4 =