Reputation:
I'm trying to make a BMI calculator as a beginner project, as I am learning Dart. However, when I'm trying to take input, it outputs an error
import 'dart:io';
void main() {
print('What is your weight in kgs?');
var weight = Stdin.readLineSync();
print("Your weight is $weight");
}
Upvotes: 1
Views: 284