please I am new to dart and I want to create a simple program to accept two numbers from the user and sum up the two numbers.
However, when I run the code below, I encounter into an error.
Code
import 'dart:io';
import 'dart:math';
void main() {
print("enter num1: ");
String num1 = stdin.readLineSync();
print("enter num2: ");
String num2 = stdin.readLineSync();
print(int.parse(num1) + int.parse(num2));
}
Screenshot