summaryrefslogtreecommitdiff
path: root/Original C++ Project.cp
blob: 612df5e73ba0236635eacc3944ebf1f62780d2c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <iostream>
#define PI 3.14;
using namespace std;


int main()
{
    int volume = 0;
    int Radius = 0;
    int Height = 0;
    
    
    cout << "Enter Radius";
    cin >> Radius;
    
    cout << "Enter Height";
    cin >> Height;
    
    volume = 3.14 * Radius * Radius * Height;
    
        cout << "The volume of the cylinder is approximately" << volume << std::endl;
    
    
    return 0;
    
}