Wednesday, 27 August 2014

Area of Cube (surface) solution in c plusplus

Leave a Comment


//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");
}
If You Enjoyed This, Take 5 Seconds To Share It