wczytaniu sie strony ma pojawić się alert a.
<html>
<head>
<script type "text"/javascript">
var a=prompt("podaj a:");
var b=prompt("podaj b:");
var suma = numer(a) + numer(b);
var iloczyn = numer(a) * numer(b);
alert("iloczyn liczb a i b wynosi:" +iloczyn);
document.write ("suma liczb a i b wynosi :" +suma);
</script>
</head>
<body>
</body>
</html>
_________________________________________________________________________________
Napisz skrypt javascript który obliczy równanie kwadratowe .
<html>
<head>
</head>
<body>
<script type "text"/javascript">
var a=1;
var b=-4;
var c=-5;
var delta=Numer(b)* Numer(b)-4*Numer(a)*Numer(c);
var x1=(Numer(-b)-Math.sqrt(delta))/2*Numer(a));
var x2=(Numer(-b)+Math.sqrt(delta))/2*Numer(a));
document.write ("x1 wynosi :"+x1);
document.write ("x2 wynosi :"+x2);
</script>
</body>
</html>
_________________________________________________________________________________
Napisz skrypt javascript który obliczy równanie kwadratowe .
<html>
<head>
</head>
<body>
<script type "text"/javascript">
var a=2;
var b=3;
var c=-1;
var delta=Numer(b)* Numer(b)-4*Numer(a)*Numer(c);
var x1=(Numer(-b)-Math.sqrt(delta))/2*Numer(a));
var x2=(Numer(-b)+Math.sqrt(delta))/2*Numer(a));
document.write ("x1 wynosi :"+x1);
document.write ("x2 wynosi :"+x2);
</script>
</body>
</html>
_________________________________________________________________________________
Napisz skrypt zawierający obliczenia obwodu i pola powierzchni okręgu o promieniu podawanym okienku pront , wartość promienia , obwodu i powierzchni
wypisać w osobnych wierszach .
Brak komentarzy:
Prześlij komentarz