aboutsummaryrefslogtreecommitdiff
path: root/6a/8.4.26aExercise/8.4.26aExercise.cpp
diff options
context:
space:
mode:
Diffstat (limited to '6a/8.4.26aExercise/8.4.26aExercise.cpp')
-rw-r--r--6a/8.4.26aExercise/8.4.26aExercise.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/6a/8.4.26aExercise/8.4.26aExercise.cpp b/6a/8.4.26aExercise/8.4.26aExercise.cpp
new file mode 100644
index 0000000..59eb4f5
--- /dev/null
+++ b/6a/8.4.26aExercise/8.4.26aExercise.cpp
@@ -0,0 +1,21 @@
+// 8.4.26aExercise.cpp : This file contains the 'main' function. Program execution begins and ends there.
+//
+
+#include <iostream>
+using namespace std;
+
+int main()
+{
+ int base = 0;
+
+ cout << "Input the size of the base of the triange: ";
+ cin >> base;
+
+ for ( int i = base; i > 0; i--) {
+ for (int j = 0; j < i; j++) {
+ cout << "*";
+ }
+ cout << endl;
+ }
+
+}