Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitb83b99d995793c7a88b7f8ecc8512d5f48b01338 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-10-29 09:30:23 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-10-29 10:17:09 +0300
Filescf6b165dd320723adddd851bf5bf7d92b2f54d34
Introduction_to_programming_FMI-b83b99d995793c7a88b7f8ecc8512d5f48b01338.tar
Introduction_to_programming_FMI-b83b99d995793c7a88b7f8ecc8512d5f48b01338.tar.gz
Introduction_to_programming_FMI-b83b99d995793c7a88b7f8ecc8512d5f48b01338.zip
Parent5bac9d08b1e583d3053148512443c845f644d72c (diff)
Fixed name and missing spaces between keyword and bracket on exercise 11
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Sem. 03/Solutions/11. Spiral_Numbers_2.cpp (renamed from Sem. 03/Solutions/11.Spiral_Numbers_2.cpp)4
diff --git a/Sem. 03/Solutions/11.Spiral_Numbers_2.cpp b/Sem. 03/Solutions/11. Spiral_Numbers_2.cpp
index 3ff0f16..f6bc2d4 100644
--- a/Sem. 03/Solutions/11.Spiral_Numbers_2.cpp
+++ b/Sem. 03/Solutions/11. Spiral_Numbers_2.cpp
@@ -7,7 +7,7 @@ int main()
int n;
cin >> n;
- for(int i = 0, previous = 0; i < n; i++)
+ for (int i = 0, previous = 0; i < n; i++)
{
int modifier = 1;
if (i % 2 == 1)
@@ -16,7 +16,7 @@ int main()
modifier = -1;
}
- for(int j = 0; j < n; j++)
+ for (int j = 0; j < n; j++)
cout << (previous += modifier) << " ";
cout << endl;