Posts by Italo P. • 11 points
2 posts
-
0
votes2
answers95
viewsQ: How to put multiple numbers on a var
var input = require('fs').readFileSync('/dev/stdin', 'utf8'); var lines = input.split('\n'); var i, p; console.log(a); p = 0; { for(i = 1; i <= 6; i = i + 1); if(x > 0.0){ p = p + 1; }…
javascriptasked Italo P. 11 -
1
votes2
answers162
viewsQ: Output: Nan | Bhaskara Formula (quadratic function) in javascript
I’m trying to solve a problem of Uri online Judge for bhaskara formula, but my Output always comes out "Nan" and I don’t know where I went wrong! Input: 10.0 20.1 5.1 var input =…