diff options
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 505dbf4..42d6d35 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -13,7 +13,8 @@ int main() { int height; int width; - int area; + float area; + float meters; cout << "Enter height of kite in cm: "; @@ -26,8 +27,13 @@ int main() cout << "Height = " << height << " cm" << endl; cout << "Width = " << width << " cm" << endl; - + + +// area calculation area = (height * width) / 2; +// unit conversion + meters = area / 10000; + } |