Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart keybord input

// importing dart:io file
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!!");
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #dart #keybord #input
ADD COMMENT
Topic
Name
9+3 =