Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
import 'dart:io'; void main() { print('How old are you?'); String input = stdin.readLineSync() ?? ''; int? age = int.tryParse(input); if (age == null) { print('That is not a valid age'); } else { print('Next year you will be ${age + 1}'); } }
How old are you?
That is not a valid age