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