diff options
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index b079311..b0243ff 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -4,19 +4,20 @@ using namespace std; int main() { - int width, height; - float area; + int width, length; + float area, ratio; cout << "Kite Math 0.1" << endl; cout << "Please input the width of your kite:" << endl; cin >> width; - cout << "Please input the height of your kite:" << endl; - cin >> height; + cout << "Please input the length of your kite:" << endl; + cin >> length; cout << endl; cout << "Width: " << width << endl; - cout << "Height: " << height << endl; + cout << "length: " << length << endl; - area = (width * height) / 2; + area = (width * length) / 2; area = area / 10000; + ratio = width / length; } |