predict the return data type float m; p=m/3*(math.pow(4,3); system.out.print(p);
Answers
Answered by
28
it should be float data type
Answered by
39
float m;
p=m*1.0/3*(Math.pow(4,3));
System.out.println(p);
Hence,
we have to return the value of p and the data type of p will be double
p=m*1.0/3*(Math.pow(4,3));
System.out.println(p);
Hence,
we have to return the value of p and the data type of p will be double
Similar questions