Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function programmingBook(input) {
- let bookPrice = (Number(input[0]) * 899) + (2 * Number(input[1]));
- let paperPercent = bookPrice / 100 * Number(input[2]);
- bookPrice += Number(input[3]) - paperPercent;
- console.log(`Avtonom should pay ${(bookPrice - bookPrice / 100 * Number(input[4])).toFixed(2)} BGN.`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement