Js course 7.2 practice
Time to go shopping! Everything in the store has been discounted by 20%. You are given a program that takes the price of an item as input. Complete the program so that it outputs the discounted price to the console. Sample Input 100 Sample Output 80 Explanation 20 percent of 100 equals to 20 (100 * 20/100), so the discounted price will be 80 (100 - 20). Note: Remember the division (/) and multiplication (*) operators. ---------code------------ //so we donât overwhelm you, weâve hidden the code that executes the input function main() { var oldPrice = parseInt(readLine(), 10) // your code goes here } -----------end of code------------- That's my problem, I can't answer that. What should I do? I can't understand the question. "//your code goes here" is the place I should put my answer. What code should I write.