Skip to content

Commit

Permalink
Update 2.cpp.md
Browse files Browse the repository at this point in the history
  • Loading branch information
botond-szabo authored Aug 26, 2024
1 parent e4b059a commit 63c5417
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions content/4.languages/2.cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ analytics:
::code-group{:groups='["conanfile.txt", "conanfile.py"]'}

#conanfile.txt
```text
```ini
[requires]
necto/1.0.1

Expand All @@ -30,17 +30,16 @@ cmake_layout
```

#conanfile.py
```python
def fib(n): # write Fibonacci series up to n
"""Print a Fibonacci series up to n."""
a, b = 0, 1
while a < n:
print(a, end=' ')
a, b = b, a+b
print()

# Now call the function we just defined:
fib(2000)
```ini
[requires]
necto/1.0.1

[generators]
CMakeDeps
CMakeToolchain

[layout]
cmake_layout
```

::
Expand Down

0 comments on commit 63c5417

Please sign in to comment.