fork download
  1.  
  2. import java.io.*;
  3.  
  4. public class hipotenusa {
  5.  
  6. public static void main(String args[]) throws IOException {
  7. BufferedReader bufEntrada = new BufferedReader(new InputStreamReader(System.in));
  8. double a;
  9. double b;
  10. double c;
  11. System.out.println("caculo de la hipotenusa");
  12. System.out.println("ingrese el valor del cateto opuesto");
  13. a = Double.parseDouble(bufEntrada.readLine());
  14. System.out.println("ingresar el valor del cateto adyancete");
  15. b = Double.parseDouble(bufEntrada.readLine());
  16. }
  17.  
  18.  
  19. }
  20.  
  21.  
Success #stdin #stdout 0.03s 25304KB
stdin
Standard input is empty
stdout
import java.io.*;

public class hipotenusa {

	public static void main(String args[]) throws IOException {
		BufferedReader bufEntrada = new BufferedReader(new InputStreamReader(System.in));
		double a;
		double b;
		double c;
		System.out.println("caculo de la hipotenusa");
		System.out.println("ingrese el valor del cateto opuesto");
		a = Double.parseDouble(bufEntrada.readLine());
		System.out.println("ingresar el valor del cateto adyancete");
		b = Double.parseDouble(bufEntrada.readLine());
	}


}