Professional Documents
Culture Documents
Poo U2 A2
Poo U2 A2
METODO CORRECTO public static int suma(int a, int b){ int c; c = a+b; return c; } public static int area(int a, int b){ int c; c = a*b; return c; } public static float divide(float a, float b){ float c; c=a/b; return c; } public static void resta(){ int c; int a = valor; int b = valor; c = a-b; System.out.println(el resultado es:+c); } public static float Circulo(float r){ float b = 3.1416; float a; a = b*Math.pow(r,2); return a; }