0
I am doing an exercise that receives a value of the radius of the sphere, and then do operations with formulas already proposed by the exercise.
So far so good, at the time of rotating, wheel quiet, the problem is that it does not return a volume value, in how much the others return quietly.
package pct;
import java.util.Scanner;
import java.lang.Math;
public class exer01 {
public static void main(String[] args) {
Scanner teclado = new Scanner (System.in);
double c, a, v, raio = 0;
System.out.println("Digite o raio da esfera: ");
raio = teclado.nextDouble();
c = 2*3.14*raio;
a = 3.14*Math.pow(raio, 2);
v = 3 / 4*3.14*Math.pow(raio, 3);
System.out.println("O valor do comprimento é: "+c);
System.out.println("O valor da área é: "+a);
System.out.println("O valor do volume: "+v);
}
}