From 653bd0b31519cf279e402fd177a40bafbcffc897 Mon Sep 17 00:00:00 2001 From: Justsvetoslavov Date: Thu, 28 Oct 2021 17:37:38 +0300 Subject: Update Pract 01-03. Rename --- pract_SI/Pract. 01/Solutions/task2.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pract_SI/Pract. 01/Solutions/task2.cpp (limited to 'pract_SI/Pract. 01/Solutions/task2.cpp') diff --git a/pract_SI/Pract. 01/Solutions/task2.cpp b/pract_SI/Pract. 01/Solutions/task2.cpp new file mode 100644 index 0000000..554653d --- /dev/null +++ b/pract_SI/Pract. 01/Solutions/task2.cpp @@ -0,0 +1,17 @@ +#include +using namespace std; +int main() +{ + double x, y; + + cout << "First side: "; + cin >> x; + + cout << "Second side: "; + cin >> y; + + cout << "Parameter: " << 2 * (x + y) << endl; + cout << "Area: " << x * y << endl; + + return 0; +} \ No newline at end of file -- cgit v1.3.1-23-gd82d