Hi everyone, I'm currently in the process of making a program that prompts the user for two radius of two separate spheres then it calculates the sum of the two radius's. Then it takes the final sum and calculates the volume of a sphere from that sum ((4/3)pie(r)^3). I'm having trouble getting the correct calculations just using int main(). So i've been trying to use the void function to help me out but I am getting errors. I will post what I have so far and if anyone can help me in the right direction it will be much appreciated.
1) you are not calling your volume function
2) Why do you have 3 arguments here?
Do not use argument list to declare additional variables to use.
3) 4/3 = 1.
MiiNiPaa, you are right I had too many arguments. Looking at the code you wrote made it much more simple. I was trying to complicate things by parting out the equation. I forgot to make it 4.0/3.0 instead of 4/3.