Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitc221a7d41e42a30891792e64664e9ba071e01f83 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-10-29 08:41:19 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-10-29 10:16:55 +0300
Filese1202d739444c8a03a91e9fb139415498b5eb295
Introduction_to_programming_FMI-c221a7d41e42a30891792e64664e9ba071e01f83.tar
Introduction_to_programming_FMI-c221a7d41e42a30891792e64664e9ba071e01f83.tar.gz
Introduction_to_programming_FMI-c221a7d41e42a30891792e64664e9ba071e01f83.zip
Parent2877ac7e174a13e5f8a914ccb8e9d277796321bd (diff)
Fixed solution 14 code style inconsistency
1 files changed, 1 insertions, 2 deletions
-rw-r--r--Sem. 03/Solutions/14. Tree.cpp3
diff --git a/Sem. 03/Solutions/14. Tree.cpp b/Sem. 03/Solutions/14. Tree.cpp
index b47daa4..411db7f 100644
--- a/Sem. 03/Solutions/14. Tree.cpp
+++ b/Sem. 03/Solutions/14. Tree.cpp
@@ -12,9 +12,8 @@ int main()
for(int j = n - i; j > 0; j--)
cout << " ";
for(int j = -i + 1; j < i; j++)
- {
cout << i - ((j < 0) ? -j : j);
- }
+
cout << endl;
}
for(int i = n - 1; i > 0; i--)