LoginSignup
4

More than 5 years have passed since last update.

forループの練習問題(数字でピラミッドを作る)  上級編

Last updated at Posted at 2017-02-13

はじめに

この練習問題は下記記事の続編として作成しました。
そのため、やや難しい問題となっております。
初級・中級編を解いた後にやってみると問題にスムーズに入れると思います。

初級・中級編
http://qiita.com/takuya-kodama/items/32edabf2c27c4b4690a0

練習問題

ではさっそく練習問題にチャレンジしてみましょう!
問題は全部で6問あります。

問題1
321
21
1

問題2
123
*12
**1

問題3
6
54
321

問題4
1234321
*12321
**121
***1

問題5
****1
***121
**12321
*1234321
123454321
*1234321
**12321
***121
****1

問題6
****5
***545
**54345
*5432345
543212345

解答

解答は下記のリンクに載せております。
http://qiita.com/takuya-kodama/items/926f280b2119486ebce4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4