JSFiddle - React, Tailwind, and code Playground

JavaScript

let input = '10 15 30 22';

let print = this.print || console.log;
let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);



 
let s = input.split(' ');







s.forEach(function(s) {
      s = parseInt(s);
    w = s * 1.8 + 32;
    g = Math.round(w);
  print(g.toFixed(0));
}

);