匿名 #163(2007/07/05 04:47 GMT) [ Scheme ] Rating0/0=0.00
pyramidooooooo!
1 2 3 4 5 6 7 8
(define (pyramid h) (for-each (lambda (pyram) (display pyram) (newline)) (do ((space (- h 1) (- space 1)) (star 1 (+ star 2)) (pyram '() (cons (string-append (make-string space #\space) (make-string star #\*)) pyram))) ((> 0 space) (reverse pyram)))))
Rating0/0=0.00-0+
[ reply ]
匿名
#163()
[
Scheme
]
Rating0/0=0.00
Rating0/0=0.00-0+
[ reply ]