diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2024-09-30 16:08:27 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-09-30 16:08:27 +0530 |
commit | 3496b0ed08c51e37e135e686b1632fd86f930c2c (patch) | |
tree | 1da44792489607070f3b4ca14d82af05b73e362b /problems/whatsthatprogression/attachments/template.js |
(init): Initialize repository.
Diffstat (limited to 'problems/whatsthatprogression/attachments/template.js')
-rw-r--r-- | problems/whatsthatprogression/attachments/template.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/problems/whatsthatprogression/attachments/template.js b/problems/whatsthatprogression/attachments/template.js new file mode 100644 index 0000000..cb27e76 --- /dev/null +++ b/problems/whatsthatprogression/attachments/template.js @@ -0,0 +1,15 @@ +var inputs = readline().split(' '); +const income = parseInt(inputs[0]); +const mr = parseFloat(inputs[1]); +const savings = parseInt(inputs[2]); +const N = parseInt(readline()); +for (let i = 0; i < N; i++) { + var inputs = readline().split(' '); + const price = parseInt(inputs[0]); + const expenses = parseInt(inputs[1]); +} + +// Write an answer using console.log() +// To debug: console.error('Debug messages...'); + +console.log('Yes, the house is affordable with 1 roommate(s) and $1 to spare.'); |