• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Share code giải phương trình bậc nhất và bậc hai cho xtgem và wap html

Admin

Well-Known Member
Staff member
Administrator
Giải phương trình bậc nhất:
HTML:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Hệ số a</title>
<script type="text/javascript" language="javascript">
function pt()
{
var a,b,x;
a = document.nhap.a.value;
b = document.nhap.b.value;
if (a==0 && b==0)
{
document.write("Phuong trinh co vo so nghiem");
}
else if(a==0 && b!==0)
{
document.write("Phuong trinh vo nghiem");
}
else if(a!=0 && b!=0)
{
x= -b/a;
document.nhap.c.value =x;
}
}
</script>
</head>
<body>
<form name="nhap">
he so a:
<input type="text" name="a">
<p>he so b:
<input type="text" name="b">
</p>
<p>ket qua:
<label>
<input type="text" name="c">
</label>
</p>
<p>
<input type="button" value="giai" onClick="pt()">
</p>
</form>
</body>
</html>
-Giải phươg trình bậc hai:
HTML:
<script type="text/javascript" language="javascript">
function ptbh()
{
var a, b, c, delta, x, x1, x2;
a = document.nhap.a.value;
b = document.nhap.b.value;
c = document.nhap.c.value;
delta = b*b - 4*a*c;
if (delta < 0)
{
document.write(" Phương trình vô nghiệm ");
}
else if (delta ==0)
{
x = -b/2*a;
document.nhap.f.value =x;
}
else if (delta > 0)
{
x1 = (-b + Math.sqrt(delta))/(2*a);
document.nhap.d.value =x1;
x2 = (-b - Math.sqrt(delta))/(2*a);
document.nhap.e.value =x2;
}
}
</script>
</head>
<body>
<form name="nhap">
<p>Nhap a:
<input name="a" type="text" />
x1:
<label>
<input type="text" name="d" />
</label>
</p>
<p>Nhập b:
<label>
<input type="text" name="b" />
</label>
x2:
<label>
<input type="text" name="e"/>
</label>
</p>
<p>Nhập c:
<label>
<input type="text" name="c"/>
</label>
Nghiệm kép:
<label>
<input type="text" name="f" />
</label>
</p>
<p>
<label>
<input type="button" value="giai" onclick="ptbh()" />
<input type="button" value="reset" onclick="location.href='ptbh.htm'" />
</label>
</p>
</form>
</body>
</html>
 

Facebook Comments

Similar threads
Thread starter Title Forum Replies Date
Admin Share 15GB source code Android bao gồm Unity Android, iOS 5
Admin Share code Nukeviet 4.4.02 mới nhất - Code tin tức tốt nhất Việt Nam Mã nguồn web 3
Admin Share code và data game bài Gowin 2019 mới nhất Mã nguồn web 9
Npnken Share Share code shop nick tự động - shopbumma.com PHP 3
SuperTroll Share code chat cho wap4.co Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
SuperTroll Share Code đua Pet cho MXH Team Johncms 0
SuperTroll Share Code JohnCMS Mefun.VN Johncms 0
L Share Full Code Gocvn.Org Johncms 1
cuongpro9x Share Share Code Chia Sẻ Video Cực Đẹp Nhiều Chức Năng All Shared Scripts 1
MrTrieu Share Share code blog JohnCMS làm wap game, truyện, blog thủ thuật đẹp Johncms 2
cuongpro9x Share Share Code Get Link Max BW onbox All Shared Scripts 1
H Share Share Full code VBB openitvn.net Vbulletin 1
H Share Share code game oẳn tù tì lột đồ girl cho JohnCMS by Nguyên Ary Johncms 1
H Share Share code và data WapIT JohnCMS 4.5.1 Johncms 0
T Share Tổng Hợp Code Tool Mod Java Online [full] All Shared Scripts 0
cuongpro9x Share Share code MXH Avatar trên wap VINA4U.MOBI PREMIUM Johncms 14
H Share [XtGem] Share code lấy id tag tên và ảnh b.bè trên FaceBook Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
H Share Share Code GhCMS - code giúp cho việc tạo wap trên WapMienPhi thật đơn giản Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
H Share Share Code sao lưu, Phục Hồi CSDL Cực Cool chỉ 1 file duy nhất All Shared Scripts 0
H Share Share code Wilib mod giống trasua.mobi All Shared Scripts 0
T Hỏi Anh em pro nào có code này share em với ạ ! Wordpress 1
NhokLove Share Share lại code nhật ký love All Shared Scripts 3
T Share tổng hợp code tiện ích của gocvn PHP 0
T Share code wap chat PHP v1.3 PHP 0
T SHARE Code cùng chuyên mục blog xtgem Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
T Share Code xóa quảng cáo Xtgem bằng css Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
V Share - Code blog JohnCMS làm wap game, truyện Johncms 5
V Share Share code filelist 99% không time out + toolpost cho xtgem by Sắt Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
T Share Share Code Mod Thay đổi Màu Nick Tùy Ý Cho Johncms Johncms 1
H Code m4um giống m4v 99% share by F4v Johncms 1
H ai share giup e code upload voi Mã nguồn wap 1
K Share Share code fake sms củamobiviet.vn đang dùng All Shared Scripts 1
Kayashiteru Share code đánh dấu trang Wap builder, wapego, xtgem, wen.ru, wapka, wap4 0
Kayashiteru Share Share code chống reg nick quá 3 lần trên 1 IP All Shared Scripts 0
Kayashiteru Share share code igunny.ml pb v3 fix sach loi va có nhieu game mini All Shared Scripts 2
djdungcuty Share Share Code trang trí cho website đón Tết cực đẹp Javascript/ajax 1
KhangSkull Share code Bazar Shop - Template bán hàng cực đẹp Wordpress v2.0.0 Wordpress 5
Yeukodamnoi Share Share code auto like Facebook - Bấm vào đâu cũng like All Shared Scripts 3
W Share Share code wap 18+ Johncms 2
H Share code WapFTP by DienDanVn.Me Johncms 2
Myshare Share Code Blog JohnCMS 5.1.0 Giống Wap4VN Johncms 1
Yeukodamnoi [JohnCMS] Share code auto tag lấy từ kết quả hiển thị của Google Johncms 0
H Share code johncms giống teamobi hàng độc by vina4u.mobi Johncms 0
C Share Share code filelist SMS KUTE cho ai làm wap xtgem đây!! Javascript/ajax 1
A Share Code PHP Tạo Logo "Angry Birds" By Nguyên Ary Mã nguồn wap 1
N Share share code Xenforo Vntech24.Net Full Mod 2013 Xenforo 5
V Share code Xenforo giống daivietpda All Shared Scripts 2
V Share code xenforo dùng làm wap truyện, game, tin tức All Shared Scripts 0
O Share Share code mạng xã hội mà Zing me đang sử dụng (việt hóa). All Shared Scripts 0
bunvocam9x Share Share code johncms 5.0.0 full mod by ClanIT.TK Johncms 5

Similar threads

New posts New threads New resources

Back
Top