JSFiddle - React, Tailwind, and code Playground
JavaScript
let input = [
'4',
'50',
'40',
'32',
'5'
];
let print = this.print || console.log;
let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);
const n = +gets();
const numbersArray = [];
for (let i = 0; i < n; i++) {
numbersArray.push(+gets());
}
for (var i = 0; i < numbersArray.length; i++) {
print((numbersArray[i] / 100 * 35).toFixed(2));
}