Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Programming introduction / Solutions Sem. 03 / 08. Triangle.cpp
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Year 1/Programming introduction/Solutions Sem. 03/08. Triangle.cpp2
diff --git a/Year 1/Programming introduction/Solutions Sem. 03/08. Triangle.cpp b/Year 1/Programming introduction/Solutions Sem. 03/08. Triangle.cpp
index fa2b501..ad6764b 100644
--- a/Year 1/Programming introduction/Solutions Sem. 03/08. Triangle.cpp
+++ b/Year 1/Programming introduction/Solutions Sem. 03/08. Triangle.cpp
@@ -9,7 +9,7 @@ int main()
for (int row = 1; row <= n; row++)
{
- for (int col = 0; col < row; col++)
+ for (int col = 1; col <= row; col++)
cout << "$ ";
cout << endl;