the_carlos_rock
Usuario (México)
por cierre de megaupload tratare de subir el archivo lo mas pronto posible les dejo un e-book de buena calidad visibilidad 95% calculo y geometria analitica volumen 1 6a edicion roland e larson, robert p hostetler and bruce h edwards ed mcgraw gill
import java.util.Scanner; import java.math.*; public class complejo{ public static void main (String[] args) { Scanner dato = new Scanner(System.in); int a,b, c, d, e, f, g, h, i, j, k, l; int m, n, o, p, q, r, s, x=0, w, z; System.out.print("ingresar no real" ) ; a=dato.nextInt(); System.out.print("ingresar no imag" ) ; b=dato.nextInt(); System.out.print("ingresar no real" ) ; c=dato.nextInt(); System.out.print("ingresar no imag" ) ; d=dato.nextInt(); //suma y resta e=a+c; f=b+d; //multiplicacion g=a*c; h=a*d; i=b*c; l=b*d; k=h+i; l=(-1)*l; j=l+g; //division x=(-1)*d; m=a*c; n=a*x; o=b*c; p=b*x; q=c*c; r=d*x; s=n+o; r=(-1)*r; w=q+r; p=p*(-1); z=p+m; if(f>0){ System.out.printf("%d+%di",e,f) ; } else{ System.out.printf("%d%di",e,f) ; } if( k>0 && j>0){ System.out.printf("n%d+%di",j,k) ; } if(k<0 && j>0){ System.out.printf("n%d%di",j,k) ; } if( s>o){ System.out.printf("nn%d+%di", z, s) ; System.out.printf("n----------" ) ; System.out.printf("n %d", w) ; }else{ System.out.printf("nn%d%di", z, s) ; System.out.printf("n----------" ) ; System.out.printf("n %d", w) ; } } }
//codigo para invertir numero espero les guste programacion java import java.io.*; class invertirNumero{ public static void main(String Arg[ ]) throws IOException { int num , num_inv , div_entera , resto_div; BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Ingrese numero : " ) ; num = Integer.parseInt(in.readLine()) ; num_inv = 0; div_entera = num; resto_div = 0; while (div_entera != 0) { resto_div = div_entera % 10; div_entera = div_entera / 10; num_inv = num_inv * 10 + resto_div; } System.out.println("El numero " + num + " invertido es " + num_inv); } }