Answer:
# include<iostream>
# include<math.h>
using namespace::std;
void calc (int num)
{
cout<<"Area of Square" <<num*num;
cout<<"Volume of a sphere" << (4/3) *3.14*num*num*num;
cout<<"Side of a Square" <<sqrt(num);
}
int main ()
{
int num;
cout<<"Enter the Number"; cin>>num;
calc(num);
return 0;
}
Explanation:
I have used the swtich for the selection purpose. Also, I have used sqrt() function, and for that I have included math,h library. And the various formula comes from mensuration. Rest part is self explanatory.