From 989eafb2fa1a1e7268fe565c8f4367b744429070 Mon Sep 17 00:00:00 2001 From: Nathanturcas Date: Sun, 23 Oct 2022 15:50:53 -0700 Subject: commit 1 --- BlankConsoleLab/BlankConsoleLab.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index ed5f807..53c8b7f 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -11,6 +11,21 @@ using std::endl; int main() { - cout << "Hello World!\n"; + float width, height,area; + + cout << "Enter width (cm) : "; + cin >> width; + cout << "Enter height (cm) : "; + cin >> height; + + cout << "width: "; + cout << width<< endl; + cout << "height: "; + cout << height << endl; + + area = (width * height / 2) / 10000; + cout << "area (m) : "; + cout << area << endl; + } -- cgit v1.2.3