Untitled

 avatar
unknown
plain_text
3 years ago
1.8 kB
3
Indexable
// #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, a;
  //   cout << "Enter Base of Triangle: ";
  //   cin >> b;
  //   cout << "Enter Height of Triangle: ";
  //   cin >> h;
  //   a = 0.5 * b * h;
  //   cout << "Area of Triangle: " << a<<endl;
  // }

  // void areaOfPara(){
  //   double b, h, a;
  //   cout << "Enter Base of Parallelogram: ";
  //   cin >> b;
  //   cout << "Enter Height of Parallelogram: ";
  //   cin >> h;
  //   a = b * h;
  //   cout << "Area of Parallelogram: " << a;
  // }

  int main() {
    //volumeOfCylinder();
    // areaOfTriangle();
    // areaOfPara();
    return 0;
  }
Editor is loading...