Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / pract. 01 / task2.cpp
diff options
context:
space:
mode:
1 files changed, 17 insertions, 0 deletions
-rw-r--r--pract_SI/pract. 01/task2.cpp17
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<iostream>
+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