//Area of Cube (surface) 6 × side2
#include<iostream>
#include<math.h>
using namespace std;
static double pi=3.1415926535;
int main()
{
double side,Ans;
cout<<"Enter Side = ";
cin>>side;
Ans=pow(side,2)*6;
cout<<"Area of Cube (surface) = "<<Ans<<endl;
system("pause");
}
0 Questions:
Post a Comment