Advertisement
buigianggsa

Untitled

Mar 19th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function PhuongTrinhBacNhat(){
  2.                var a = prompt("Nhập vào a:");
  3.                var b = prompt("Nhập vào b:");
  4.                if (a != 0)
  5.                     document.getElementById("id1").innerHTML="Nghiệm của phương trình là x="+(-b/a);
  6.                 else
  7.                     document.getElementById("id1").innerHTML="Phương trình vô nghiệm";
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement