All pastes #925487 Raw Edit

Untitled

public text v1 · immutable
·published 2008-03-03 01:42 UTC
rendered paste body


public class circul()

{

public static double radio (int z)

{
 return 3.1416*z*z;

}

public static double perimetro (int q)

{
 return 2*3.1416*q;

}

public static void main (String[] args)
  
 {
string x;
int a;
double resultado;
double resultad;

x = JOptionPane.showInputDialog("Escrib el radio del circulo");
a = Integer.parserInt(x);

resultad = radio(a);

resultado perimetro(a);


JOptionPane.showMessageDialog( null, resultado );
JOptionPane.showMessageDialog( null, resultad);

 }
}