diff options
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
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; + } |