morioXのCraftお勉強日記 RSSフィード

2007-01-06

[] Basic types and definitions (5日目)  Basic types and definitions (5日目) - morioXのCraftお勉強日記 を含むブックマーク

Exercises 3.9

計算課程を示しなさい、という問題。

threeEqual (2 + 3) 5 (11 'div' 2)

→ threeEqual 5 5 5

→ (5 == 5) && (5 == 5) && (5 == 5)

→ true && true && true

→ true && true

→ true

mistery (2 + 4) 5 (11 'div' 2)

→ mistery 6 5 5

→ not ( (6 == 5) && (5 == 5) )

→ not (false && true)

→ not false

→ true

threeDifferent (2 + 4) 5 (11 'div' 2)

→ threeDifferent 6 5 5

→ (6 /= 5) && (5 /= 5) && (5 /= 6)

→ true && false && true

→ false && true

→ false

fourEqual (2 + 3) 5 (11 'div' 2) (21 'mod' 11)

→ fourEqual 5 5 5 10

→ (5 == 5) && (5 == 5) && (5 == 5) && (5 == 10)

→ true && true & true && false

→ true && true && false

→ true && false

→ false

DexterDexter2012/10/04 15:34If I were a Teenage Mutant Ninja Turtle, now I'd say "Koawbunga, dude!"

rbykwjtpzrrbykwjtpzr2012/10/05 11:47j6D7mY <a href="http://okkufptiofwm.com/">okkufptiofwm</a>

gyzbindgyzbind2012/10/06 12:129InAYl , [url=http://nokdoarxdtuz.com/]nokdoarxdtuz[/url], [link=http://gufzenpiflob.com/]gufzenpiflob[/link], http://tnmhfzgghwex.com/

uoioazzuoioazz2012/10/07 02:08XfLv9D <a href="http://ifqpajrmbjhd.com/">ifqpajrmbjhd</a>

ifptqnpojyifptqnpojy2012/10/07 09:33dF4P9V , [url=http://abtuddkggrxf.com/]abtuddkggrxf[/url], [link=http://cfqxpsmiibod.com/]cfqxpsmiibod[/link], http://bbgihcxazjgb.com/