From 14b5f6ac70c6a4db143c1ec0168342d156720d9d Mon Sep 17 00:00:00 2001 From: Tim-8 Date: Thu, 16 Sep 2021 19:21:22 +0900 Subject: [PATCH] 3-3 --- 3-3/main.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/3-3/main.js b/3-3/main.js index e69de29b..7e02bc43 100644 --- a/3-3/main.js +++ b/3-3/main.js @@ -0,0 +1,11 @@ +const step = process.argv[2]; + +for(let i=1;i<=step;i++){ + for(let j=1;j<=step-i;j++){ + process.stdout.write(" "); + } + for(let k=1;k<=i*2-1;k++){ + process.stdout.write("*"); + } + console.log(); +} \ No newline at end of file