From 235bbe2ccc3565f8af02f9cddd76b8937f6dff33 Mon Sep 17 00:00:00 2001 From: Angel Dimitriev Date: Thu, 28 Oct 2021 10:51:25 -0400 Subject: Rename exercise 8 - dollar pyramid.cpp to exercise 08 - dollar pyramid.cpp --- Sem. 03/solutions/exercise 08 - dollar pyramid.cpp | 19 +++++++++++++++++++ Sem. 03/solutions/exercise 8 - dollar pyramid.cpp | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 Sem. 03/solutions/exercise 08 - dollar pyramid.cpp delete mode 100644 Sem. 03/solutions/exercise 8 - dollar pyramid.cpp diff --git a/Sem. 03/solutions/exercise 08 - dollar pyramid.cpp b/Sem. 03/solutions/exercise 08 - dollar pyramid.cpp new file mode 100644 index 0000000..1ea164d --- /dev/null +++ b/Sem. 03/solutions/exercise 08 - dollar pyramid.cpp @@ -0,0 +1,19 @@ +#include +using namespace std; + +int main() +{ + + int n; + cin >> n; + + for(int i = 1; i <= n; i++) + { + for(int j = 1; j <= i; j++) + cout << "$" << " "; // print as many dollars as the number of the current row + + cout << endl; + } + + return 0; +} diff --git a/Sem. 03/solutions/exercise 8 - dollar pyramid.cpp b/Sem. 03/solutions/exercise 8 - dollar pyramid.cpp deleted file mode 100644 index 65f6106..0000000 --- a/Sem. 03/solutions/exercise 8 - dollar pyramid.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include -using namespace std; - -int main() -{ - - int n; - cin >> n; - - for(int i = 1; i <= n; i++) - { - for(int j = 1; j <= i; j++) - cout << "$" << " "; // print as many dollars as the number of the current row - - cout << endl; - } - - return 0; -} \ No newline at end of file -- cgit v1.3.1-23-gd82d