The below code will give you the desired output. function pyramid(N){ let result = ""; for(let i = 1 ; i <= N ; i++) { for(j = N ; j > i ...
確定! 回上一頁