Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 4 insertions, 4 deletions
-rw-r--r--Sem. 03/Solutions/15. Bowtie.cpp8
diff --git a/Sem. 03/Solutions/15. Bowtie.cpp b/Sem. 03/Solutions/15. Bowtie.cpp
index e06ab7e..31ca6e7 100644
--- a/Sem. 03/Solutions/15. Bowtie.cpp
+++ b/Sem. 03/Solutions/15. Bowtie.cpp
@@ -7,26 +7,26 @@ int main() {
cin >> n;
char middleSpacer = ' ';
- for(int i = -n + 1; i < n; i++)
+ for (int i = -n + 1; i < n; i++)
{
int absI = (i < 0) ? -i : i, diff = n - absI;
/* Numbers on the left */
- for(int j = 1; j <= diff; j++)
+ for (int j = 1; j <= diff; j++)
cout << j << " ";
/* Spaces/Line in the middle */
if (i == 0)
middleSpacer = '-';
- for(int j = 5 * n - 4 * diff; j > 0; j--)
+ for (int j = 5 * n - 4 * diff; j > 0; j--)
cout << middleSpacer;
if (i == 0)
middleSpacer = ' ';
/* Number on the right */
- for(int j = diff; j > 0; j--)
+ for (int j = diff; j > 0; j--)
cout << " " << j;
cout << endl;