Dart Get String Input From User

[Solved] Dart Get String Input From User | Dart - Code Explorer | yomemimo.com
Question : dart get String input from user

Answered by : fancy-frog-4ocwarr9lp5v

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!!");
} 

Source : | Last Update : Sun, 15 Nov 20

Answers related to dart get String input from user

Code Explorer Popular Question For Dart