Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
1.4 kB
3
Indexable
Never
// #include <iostream>
// using namespace std;
// int num1, num2;

// void sum(int num1, int num2){
//   int summ;
//   summ = num1 + num2;
//   cout << "Sum of Number 1 & Number 2 is: " << summ<<endl;
// }

// void diff(int num1, int num2){
//   int difff;
//   difff = num1 - num2;
//   cout << "Difference of Number 1 & Number 2 is: "<< difff<< endl;
// }

// void product(int num1, int num2){
//   int prod;
//   prod = num1 * num2;
//   cout << "Product of Number 1 & Number 2 is: "<< prod <<endl;
// }

// void division(int num1, int num2){
//   int divv;
//   divv = num1 / num2;
//   cout << "Division of Number 1 & Number 2 is: "<< divv <<endl;
// }

// int main() {
//     cout << "Enter Number 1: ";
//     cin >> num1;
//     cout << "Enter Number 2: ";
//     cin >> num2;
//     sum(num1, num2);
//     diff(num1, num2);
//     product(num1, num2);
//     division(num1, num2);
//     return 0;
// }



  #include <iostream>
  using namespace std;

  void volumeOfCylinder(){
  double r, h, pie = 3.14159, v;
  cout << "Enter Radius of Cylinder: ";
  cin >> r;
  cout << "Enter Height of Cylinder: ";
  cin >> h;
  v = pie * r * r * h;
    cout << "Volume of Cylinder = " << a;
    }

  void areaOfTriangle(){
    double; b, h;
    cout << "Enter Base of Triangle: ";
    cin >> b;
    cout << "Enter Height of Triangle: ";
  }

  int main() {
    //volumeOfCylinder();
    return 0;
  }