開発環境
- OS X Mavericks - Apple (OS)
- Dart Editor (開発環境)
- Dart (プログラミング言語)
C実践プログラミング 第3版 (Steve Oualline (著)、 望月 康司 (監訳) (翻訳)、谷口 功 (翻訳)、オライリー・ジャパン)のⅡ部(単純なプログラミング)の10章(Cプリプロセッサ)、10.1(#define文)、設問 10-2をDartで解いてみる。
その他参考書籍
- What is Dart? [Kindle版] (O'Reilly Media) Kathy Walrath Seth Ladd (著) このブログでの感想
設問 10-2.
コード
sample.dart
final max = 10; void main(){ for(var counter = max; counter > 0; counter -= 1){ print('Hi there'); } }
入出力結果
Hi there Hi there Hi there Hi there Hi there Hi there Hi there Hi there Hi there Hi there
0 コメント:
コメントを投稿