miércoles, 22 de abril de 2015

propu_4




package propuesto4;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class PROPUESTO4 {

    public static void main(String[] args) throws IOException {
        // TODO code application logic here
        int a=(int) 6.0 , b=(int) 8.0;
        int c,d,factor1;
           BufferedReader in=new BufferedReader(new  InputStreamReader(System.in));
            System.out.println("ingresar a:");
       a=(int)Integer.parseInt(in.readLine());//ojo
         System.out.println("ingresar b:");
      b=(int)Integer.parseInt(in.readLine());//ojo

 c=(int) ((4*Math.pow(a,4)+3*a*b+Math.pow(b,2))/(Math.pow(a,2)-Math.pow(b,2)));
 factor1 = (int) (3*(Math.pow(c,2))+a+b);
  d=factor1/4;
   System.out.println("");
  System.out.println("el valor de c es:"+c+" y el valor de d es :"+d);
   System.out.println();
  
    }
}

No hay comentarios:

Publicar un comentario