匿名 #168(2007/07/05 05:25 GMT) [ Scheme ] Rating0/0=0.00
Gaucheで。
1 2 3 4 5 6
(define (pyramid h) (let loop ((space (- h 1)) (star 1)) (if (<= 0 space) (begin (print #`",(make-string space #\\space),(make-string star #\\*)") (loop (- space 1) (+ star 2))))))
Rating0/0=0.00-0+
[ reply ]
匿名
#168()
[
Scheme
]
Rating0/0=0.00
Rating0/0=0.00-0+
[ reply ]