#include <iostream> using namespace std; int main() { double side, surfaceArea; cout << "Enter the side length of the cube: "; cin >> side; surfaceArea = 6 * side * side; cout << "The surface area of the cube is: " << surfaceArea << endl; return 0; }
using namespace std;
int main() {
double side, surfaceArea;
cout << "Enter the side length of the cube: ";
cin >> side;
surfaceArea = 6 * side * side;
cout << "The surface area of the cube is: " << surfaceArea << endl;
return 0;
}