poniedziałek, 21 września 2015

Przypomnienie Java, CSS, PHP

<html>
<head>
</head>
<body>
<script type="text/javascript">
//<![CDATA[

var a=prompt("Podaj liczbe a:","");
var b=prompt("Podaj liczbe b:","");
var suma = (a+b);
var iloczyn = (a*b);
 alert("ILOCZYN LICZB A I B WYNOSI : " + iloczyn);
 document.write("SUMA LICZB A I B WYNOSI : " + suma);


// Koniec kodu JavaScript -->
//]]>

</script>

</body>


</html>





德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德
<html>
<head>
</head>
<body>
<script type="text/javascript">
//<![CDATA[

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>

 



// Koniec kodu JavaScript -->
//]]>

</script>

</body>
 
 
 
 
] 

 







 
德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德德
 
Napisać skrypt javascript zawierający obliczenia obwodu i pola powichrzeni okręgu o promieniu 
podawanym w okienku prompt wartość promienia, obwodu i powichrzeni w osobnych wierszach 
na stronie 

1111111111111111111111111111111111111111111111111111111111

<html>
<head>
</head>
<body>

<script>
 var a = prompt(" Podaj promien : ");
 var obwod = 2*3.14*a;
 var pole = 3.14*Math.pow(a,2);
 document.write(" Obwod wynosi : " + obwod );
 document.write(" Pole wynosi: " + pole );
 </script>
 
 </body>
 </html>
 
 
 

111111111111111111111111111111111111111111111111111111
html>
<head>
</head>
<body>

<script>
 var a=prompt("Podaj bok a:");
 var b=prompt("Podaj bok b:");
 var c=prompt("Podaj bok c:");
 if ( a+b>c & a+c>b & c+b>a)
 {
 document.write("Trójkąt istnieję:");
 }
 
 else {
 document.write("Trójkąt nie istnieję")
 }
 
 
 </script>
 
 </body>
 </html>






11111111111111111111111111111111111111111111111111111
<html>
<head>
</head>
<body>

<script>
 var a=prompt("Podaj liczbe:");
 if (a%3==0&a>50){
 document.write("Podana liczba jest wieksza od 50 i podzielna przez 3")
 }
 else ("Podana liczba nie jest podzielna przez 3 i nie jest wieksza od 50")
 
 
 
 </script>
 
 </body>
 </html>










111111111111111111111111111111111111111111111111111




<html>
<head>

<script type="text/javascript">

    var a = prompt ("Podaj wzrost: ");
    if (a<=150){
    document.write("Jestes niski");
    }
    if (a>150 & a<180){
    document.write("Jestes sredni");
    }
    if (a>=180){
    document.write("Jestes wyoski");
    }
   

</script>

</head>

</html>




1111111111111111111111111111111111111111111111111111



<html>
<head>
</head>
<body>

<script>
 var a=prompt("Podaj liczbe :");
 var b=prompt("Podaj liczbe :");
 var c=prompt("Podaj liczbe :");
 if ( a>b & a>c & b>c)
 {
 document.write(a-b+c);
 }
 if ( b>a & b>c & a>c)
 {
 document.write(b+a+c);
 }
 if ( a>b & a>c & c>b)
 {
 document.write(a+c+b);
 }
 if ( c>a & c>b & a>b)
 {
 document.write(c+a+b);
 }
 if ( c>a & c>b & b>a)
 {
 document.write(c+b+a);
 }


 </script>

 </body>
 </html>









11111111111111111111111111111111111111111111111111111111111






<html>
<head>
       
       
       
    <script type="text/javascript">
   
   
    var liczba = [];
    var suma = 0;
    for ( i=0 ; i<=10; i++){
    liczba push(prompt("Podaj liczbe:" +)(i+1));
    }
    for (j=0; j<10,j++)
    document.write("Tab["+j+"]="+liczba[j]+"<br>");
    document.write("Suma:"+suma);
   

</script>

</head>

</html>






--------------------------------------------------------------------------
var tekst="Dzien Dobry";
document.write(tekst.bold());
document.write(tekst.FontColor("red");
document.write(tekst.link(www.wp.pl));
document.write(tekst.big());
document.write(tekst.bold());
document.write(tekst.small());
document.write(tekst.FontSize(23));

document.write(tekst.arial());





 

Brak komentarzy:

Prześlij komentarz