diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3ac0c91..2a1a552 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,4 +20,5 @@ - Reysekha - igrzhukovich - CinnamonXI -- AkasakaID \ No newline at end of file +- AkasakaID +- Isallkun diff --git a/README.md b/README.md index ac443f5..52b2fa6 100644 --- a/README.md +++ b/README.md @@ -28,3 +28,6 @@ langkah-langkah: Sekali lagi saya ingatkan, dimohon jangan lupa masukkan nama anda di contributing.md Terima kasih telah berpartisipasi dengan repo ini. + +## LICENSE +Distributed under the MIT License. See license.txt for more information. diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..88b404d --- /dev/null +++ b/license.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Kodingkeun Community + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/Javascript/isallkun-practicesegitiga.js b/src/Javascript/isallkun-practicesegitiga.js new file mode 100644 index 0000000..3f38e39 --- /dev/null +++ b/src/Javascript/isallkun-practicesegitiga.js @@ -0,0 +1,16 @@ +const printSegitiga = 5; + +if (typeof printSegitiga === "number") { + for (let i = 1; i <= printSegitiga; i++) { + for (let j = 1; j <= printSegitiga + 1 - i; j++) { + process.stdout.write(`${j} `); + } + console.log(""); + } +} else { + console.error("Data harus number"); +} + +// i = 1 +// printSegitiga = 5 +// 5 + 1 - 1 = 5