Entradas

FUNCIONES TEXT EN PHP USO DE IF() Y FOR()

Imagen
 INDEX.HTML RESULTADO.PHP

EJERCICIO OPERACIONES EN PHP

 INDEX.HTML <html>  <head>     <title>Operaciones </title> </head> <body> <form name="form1" method="POST"  action="resultado.php"> <h3>Operaciones</h3> Valor 1: <input type="text" name="v1"><p> Valor 2: <input type="text" name="v2"><p> <input type="submit" name="r"     value="Calcular"> </form> </body> </html> *********************************************************** RESULTADO.PHP ****************************************** <?php    $valor1=$_POST["v1"];    $valor2=$_POST["v2"];        $suma= $valor1+ $valor2;    $resta=$valor1 - $valor2;        echo "dato 1 -> " . $valor1 . "<p>";    echo "dato 2 -> " . $valor2 . "<p>";    echo "suma -> " . $suma . "<p>";    echo "resta...

PHP - LENGUAJE CLIENTE SERVIDOR

 PHP

FUNCIONES Y PROCEDIMIENTOS EN LEGUAJE C - PROGRAMACION MODULAR

/******************************************************************************                             Online C Compiler.                 Code, Compile, Run and Debug C program online. Write your code in this editor and press "Run" button to compile and execute it. PROGRAMA DE FUNCIONES .MENU FIGURAS PROGRAMACION MODULAR *******************************************************************************/ #include <stdio.h> int op; int funcion_triangulo(); int main() {   while (op!=4)   {     printf("MENU DE OPCIONES CON FUNCIONES\n");     printf("1.-  area del triangulo\n");     printf("2.-  area del circulo\n");     printf("3.-  area del pentagono\n");     printf("4.-  salir \n");     printf("ingrese opcion:");     scanf("%d",&op);     switch (op)   ...

MANEJO DE APLICACIONES PARA JUEGOS - USO DE RAMDOM

<html> <script>  function procesar() {       var aleatorio = Math.random();    alert (aleatorio);    aleatorio = (aleatorio *6) + 1;    var x= Math.trunc(aleatorio)    alert (x);    numero.value=x;     } </script> <body>       PRACTICA DE NUMEROS ALEATORIOS <P>   <FORM NAME="DATOS">     NUMERO <INPUT TYPE="TEXT" NAME="numero">  <P> <input type="button" onclick="procesar ()"  name="r" id="r" value="GENERAR ALEATORIO"> <p> </FORM> <BODY> </HTML>

ORDENAMIENTO DE VECTORES

 Es clasificar vectores por medio de un criterio de dato especifico para mover según ese criterio los demas vectores  <html> <script>  function procesar() {        var productos=['PERA','UVA','NARANJA','MANZANA','SANDIA']; var precios=[2,1,1.50,2.20,3];     var n=5;     document.write("VECTOR ORIGINAL <br />"); for(i=0;i<n;i++) {    document.write(productos[i] + " - ");    document.write(precios[i] + "<br />" );  } document.write("<br />VECTOR ORDENADO <br />"); for(i=0;i< n-1;i++) {   for(j=i+1;j<n;j++)   {      if(precios[i] >  precios[j]) {     var aux_pro=productos[i]; productos[i] = productos[j]; productos[j]= aux_pro; var aux_pre=precios[i]; precios[i]=precios[j]; precios[j]=aux_pre; }   } } for(i=0;i<n;i++) {    document.write(...