TOPIC

Wrong answer (10%) em Javascript

Aldo Costa asked 6 months ago

var input = require('fs').readFileSync('/dev/stdin', 'utf8'); var lines = input.split('\n');

var sellersName = lines.shift(); var fixedSalary = parseFloat(lines.shift()); var sell = parseFloat(lines.shift()); var total = ((sell * 15) / 100) + fixedSalary;

console.log('TOTAL = U$' + total.toFixed(2));

Alguem pode me ajudar a encontrar o erro nessa questao?

Ja tentei: var total = (sell * 0.15) + fixedSalary;

Deu o mesmo erro de 10%

Remember not post solutions. Your post may be reviewed by our moderators.