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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
#include <iostream>
#include <cmath>
using namespace std;
void output (double, double );
void output2 (double, double);
void output3 (double, double);
int main()
{
double x1,y1;
double num1,num2;
double height,width,area;
cout << "Please enter height Rectangle: ";
cin >> num1;
cout << "please enter the width of the Rectangle: ";
cin >> num2;
area = (height * width);
return 0;
}
void output()
{
double height,width,area;
area = height * width;
cout << "This is the height of Rectangle one" << height << endl;
cout << "this is the width of Rectangle one" << width << endl;
cout << "This is the area of Rectangle one" << area << endl;
}
{
double num1,num2;
double height,width,area;
cout << "Please enter height Rectangle: ";
cin >> num1;
cout << "please enter the width of the Rectangle: ";
cin >> num2;
area = (height * width);
return 0;
}
void output()
{
double height,width,area;
area = height * width;
cout << "This is the height of Rectangle two" << height << endl;
cout << "this is the width of Rectangle two" << width << endl;
cout << "This is the area of Rectangle two" << area << endl;
}
{
double num1,num2;
double height,width,area;
cout << "Please enter height Rectangle: ";
cin >> num1;
cout << "please enter the width of the Rectangle: ";
cin >> num2;
area = (height * width);
return 0;
}
void output()
{
double height,width,area;
area = height * width;
cout << "This is the height of Rectangle three" << height << endl;
cout << "this is the width of Rectangle three" << width << endl;
cout << "This is the area of Rectangle three" << area << endl;
}
|