sábado, 28 de febrero de 2015

Ejercicios


1.    <html>
<head>
<title> PositivoNegativo </title>
</head>
<body>
<script>
var n=parseInt(prompt("digite un numero");
if(n>=o){
alert("el numero es positivo");
}
else{
alert("el numero es negativo");
}
</script>
</body>
</html>

2.    <html>
<head>
<title>Temperatura</title>
</head>
<body>
<script>
var c=parseInt(prompt("Digite la temperatura");
F=32+(1.8*°C);
document.write(°F);
</script>
</body>
</html>

3.    <html>
<head>
<title>Notas</title>
</head>
<body>
<script>
var a,b;
a=parceInt(a);
b=parceInt(b);
if(a>b){
alert(b+"es su peor nota");
}
else{
alert(a+"Es su peor Nota");
}
</script>
</body>
</html>

4.    <html>
<head>
<title>parimpar</title>
</head>
<body>
<script>
var n=parseInt(prompt("Digite su numero"));
if (n>=0){
alert("El numero es positivo");
}
else{
alert("El numero es negativo");
}%==
if(n2*0){
alert("El numero es par");
}
else{
alert("El numero es impar");
}
for(i=1;i<=10;i++){
document.write(i+"x"+n+"="+(i*n)+"<br");
}

No hay comentarios:

Publicar un comentario