Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 03 / Solutions / 09. Lefthand_Triangle.cpp
diff options
context:
space:
mode:
Commitf51185d90bfe76d1fef272fe449c1d3d3bb89528 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-11-03 21:15:51 +0200
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-11-03 21:15:51 +0200
Files4c291c81d43cf6305cd22777bc33efc6b580c4ad /Sem. 03/Solutions/09. Lefthand_Triangle.cpp
Introduction_to_programming_FMI-sem03-solutions.tar
Introduction_to_programming_FMI-sem03-solutions.tar.gz
Introduction_to_programming_FMI-sem03-solutions.zip
Parent72eb06dcc769114c7dbdcf7092e218b58d2196bf (diff)
Made some minor formatting and style changes to improve readability sem03-solutions
1 files changed, 3 insertions, 3 deletions
-rw-r--r--Sem. 03/Solutions/09. Lefthand_Triangle.cpp6
diff --git a/Sem. 03/Solutions/09. Lefthand_Triangle.cpp b/Sem. 03/Solutions/09. Lefthand_Triangle.cpp
index 1aba6c7..f59ed96 100644
--- a/Sem. 03/Solutions/09. Lefthand_Triangle.cpp
+++ b/Sem. 03/Solutions/09. Lefthand_Triangle.cpp
@@ -14,11 +14,11 @@ int main()
for (int col = absRow; col > 0; col--)
cout << " ";
- int numberOnLine = 0;
+ int lineEndNum = 0;
for (int col = n - absRow; col > 0; col--)
- (numberOnLine *= 10) += col;
+ (lineEndNum *= 10) += col;
- cout << numberOnLine << endl;
+ cout << lineEndNum << endl;
}
}