From f9ae204ffadf6c74130431a713f471a7a375a991 Mon Sep 17 00:00:00 2001 From: twsta Date: Tue, 11 Oct 2022 18:57:45 -0700 Subject: added area calculation --- BlankConsoleLab/BlankConsoleLab.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 90395d3..70fb5fc 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -4,12 +4,18 @@ using namespace std; int main() { - int width, int height; + int width, height; + float area; 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 << endl; + cout << "Width: " << width << endl; + cout << "Height: " << height << endl; + + area = (width * height) / 2 } -- cgit v1.2.3