TOPIC

Wrong Answer(5%) JavaScript ! Anyone?

Rod Fernandes asked 6 months ago

const a = parseInt(lines.shift()); const b = parseInt(lines.shift()); const c = parseInt(lines.shift());

const p1 = 2; const p2 = 3; const p3 = 5;

const MEDIA = ((a p1) + (b p2) + (c * p3)) / (p1 + p2 + p3);

console.log('MEDIA = ' + MEDIA.toFixed(1));

This topic has not been answered yet. Be the first!

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