Red de conocimiento informático - Computadora portátil - Resolver ecuaciones de tres variables en lenguaje C (código fuente)

Resolver ecuaciones de tres variables en lenguaje C (código fuente)

#include?"stdio.h"

int?main()

{

int?a,b,c,d,e=0;

int?x,y,z;

printf("Ingrese un:");

scanf("%d",& amp;a) ;

printf("Ingrese b:");

scanf("%d",&b);

printf("Ingrese c:" );

scanf("%d",&c);

printf("Por favor, introduzca d:");

scanf("%d", &d);

for(x=-1000;x<=1000;x++)

for(y=-1000;y<=1000;y++)

for(z=-1000;z<1000;z++)

if(a*x+b*y+c*z==d)

{

e++;

if(e==2)

{

printf("¡Oh? ¡Dios mío!\n");

regresar?;

}

printf("x=%d?y=%d?z=%d\n",x,y,z) ;

}

if(e==0)

printf("La ecuación no tiene solución\n");

}