SHARE
TWEET

Untitled

a guest Jun 25th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int.js
  2.  
  3. function calculo()
  4.      
  5. var n1 = parseInt(document.getElementById('n1').value);
  6. var n2 = parseFloat(document.getElementById('n2').value);
  7. var base1  = parseInt(document.getElementById('const1').value);
  8. var base2  = parseFloat(document.getElementById('const2').value);
  9.  
  10. n1 -= base1;
  11. n2 -= base2;
  12.  
  13. alert(n1);
  14. alert(n2);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top