C + + Programming Calculating the Volume & Surface Area of ​​Cube



# include <iostream>

# include <string>

using namespace std;

int main ()

{

    interger r;

    interger Cube Surface Area;

    intergerVolume cube;


    Volume of cube = 0;

    Surface Area cube = 0;

    cout << "Calculating the Volume and Surface Area of ​​Cube";

    cout << endl;

    cout << "Enter r:";

    cout << endl;

    cin >> r;
   
    Volume of cube = r * r * r;

    Surface Area cube = 6 * r * r;
    cout << "Calculating Volume of cube =";
    cout << endl;
    cout << "Calculating the Surface Area cube =";
    cout << endl;;


    cout << endl << Volume Cube;
    cout << endl << Cube Surface Area;

    cout << endl;


    system ("pause");

    return 0;

Comments

Popular posts from this blog

Cara Konfigurasi Mikrotik Menggunakan Winbox

Cara Konfigurasi dan Edit VPN Client di Windows 8

Cara Konfigurasi Bandwidth dengan Simple Queue Pada Mikrotik