Hi! I need help with this exam. Somebody? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 6

Hi! I need help with this exam. Somebody?

I need to find 20% of various numbers, but I don't know how to do it. That's the code function main() { var oldPrice = parseInt(readLine(), 10) // tu código va aquí

4th Aug 2021, 10:12 PM
Lucas Rojas
Lucas Rojas - avatar
4 Answers
+ 1
To find 20% of a number you can divide it by 100 and then multiply by 20. Hopefully this will help you!
4th Aug 2021, 11:21 PM
Pieter Edwards
Pieter Edwards - avatar
+ 2
"Somebody gonna get a hurt very bad" ©Russell Peters
5th Aug 2021, 2:45 AM
Shadoff
Shadoff - avatar
+ 2
"It's easy to identify people who can't count to ten" ~ June Henderson
5th Aug 2021, 4:22 AM
Calvin Thomas
Calvin Thomas - avatar
- 1
Pieter Edwards that's exactly what I'm doing, but the code doesn't catch me. I tried many times before asking for help, but it wouldn't let me.
5th Aug 2021, 2:18 PM
Lucas Rojas
Lucas Rojas - avatar