I am doing an exercise that receives a value from the radius of the sphere, and then I do operations with formulas already proposed by the exercise.
So far so good, at the time of running, it runs smoothly, the problem is that it does not return a volume value, as long as 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);
}
}