CHAPTER 4
Five Small Programs to Showcase Fundamentals in Dart
In Chapter 3, you learned some programming fundamentals that should have given you a basic understanding of a few of the concepts we will require to write programs. In this chapter, we will demonstrate those fundamentals in action. The following programs will all fit entirely within the main() function.
Number Guessing Game
I’m thinking of a number. Can you guess what it is? It’s ten, because that’s about the number of minutes that I think it will take you to input the Number Guessing Game into Dart Editor. Create a new command-line application in Dart Editor called “NumberGuessingGame.” ...
Get Dart for Absolute Beginners now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.