From 218309b4bc02dc94306faf60cd4bb4c73b1e675e Mon Sep 17 00:00:00 2001 From: Justsvetoslavov Date: Sun, 17 Oct 2021 12:41:29 +0300 Subject: Pract. 01 - Solutions --- pract_SI/pract. 01/task2.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pract_SI/pract. 01/task2.cpp (limited to 'pract_SI/pract. 01/task2.cpp') diff --git a/pract_SI/pract. 01/task2.cpp b/pract_SI/pract. 01/task2.cpp new file mode 100644 index 0000000..554653d --- /dev/null +++ b/pract_SI/pract. 01/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