aboutsummaryrefslogtreecommitdiff
path: root/6a/8.4.26aExercise/8.4.26aExercise.cpp
diff options
context:
space:
mode:
authorJacobAKnox <[email protected]>2021-10-16 09:12:44 -0700
committerJacobAKnox <[email protected]>2021-10-16 09:12:44 -0700
commita809b1da8c9638ab81628ce9af57009f8b3c5a7f (patch)
tree452d8d948a681d1e2cbaae0a7940114cb5469487 /6a/8.4.26aExercise/8.4.26aExercise.cpp
parentmore outputs (diff)
downloadcst116-lab3-jacobaknox-a809b1da8c9638ab81628ce9af57009f8b3c5a7f.tar.xz
cst116-lab3-jacobaknox-a809b1da8c9638ab81628ce9af57009f8b3c5a7f.zip
6a exercises
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;
+ }
+
+}