Posts by Ivanilton Bezerra da Silva • 20 points
3 posts
-
0
votes2
answers42
viewsA: Miscalculation with While
Use the operator <= in your condition, like: do { if(n1 <= n2){ printf("%d\n", n1); n1 = n1 + 1; } else { printf("%d\n", n1); n1 = n1 - 1; } } while((n1 <= n2)||(n1 => n2));…
-
0
votes2
answers96
viewsA: Trigger function after change in input without Submit
You can use the event onkeyPress('Calls function when pressing qlq key') or onkeydown('Calls function on release key pressed') Below is an example: <!DOCTYPE html> <html> <body>…
-
-2
votes1
answer48
viewsA: How can I do forever that put decimals on my calculator they have a point ? the language is Javascript!
Add the Makedecimal function to your file script js. and in function equal() in each marry you call the function , so: resultado = MakeDecimal(Number(termo[0]) + Number(termo[2])); //Function to…
javascriptanswered Ivanilton Bezerra da Silva 20