Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/04/2010, 11:32
alex9010
 
Fecha de Ingreso: abril-2010
Mensajes: 15
Antigüedad: 14 años, 1 mes
Puntos: 0
Respuesta: Ayuda para validacion de datos

Pues yo los envio de tipo float. Puedes ver mis variables.


float z1,z2,z3,z4,r1,r2,r3,r4;
float a,b,c,d,x31,x32,aux,temp;
float ecuacion,determinante,r,inv,inv2;
float x11,x21,x12,x22,ecuacion1,ecuacion2;

// PIDO EL INGRESO DE LOS VALORES PARA HALLAR LA DETERMINANTE

printf ("\t\t\tVALORES DE LA ECUACION 1\n");

printf ("\x10 ingrese el valor de x1: ");
scanf ("%f",&a);
if ('ASCII' >=48 && 'ASCII'<=57)
{
printf ("\x10 ingrese el valor de x2: ");
scanf ("%f",&b);
if ('ASCII' >=48 && 'ASCII'<=57)
{

VALE PENA ACLARAR QUE ALGUNAS VARIABLES YA NO LAS UTILIZO, SINO QUE NO LAS HE BORRADO.