From 3f402620ecd071fb467b108036ac08ed48c5f929 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 3 Nov 2021 21:18:33 +0200 Subject: Updated some styling and formatting --- .../Solutions Sem. 03/09. Lefthand_Triangle.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Year 1/Programming introduction/Solutions Sem. 03/09. Lefthand_Triangle.cpp') diff --git a/Year 1/Programming introduction/Solutions Sem. 03/09. Lefthand_Triangle.cpp b/Year 1/Programming introduction/Solutions Sem. 03/09. Lefthand_Triangle.cpp index 1aba6c7..f59ed96 100644 --- a/Year 1/Programming introduction/Solutions Sem. 03/09. Lefthand_Triangle.cpp +++ b/Year 1/Programming introduction/Solutions Sem. 03/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; } } -- cgit v1.3.1-26-gb76a