ChangeLog update and scope example explained
This commit is contained in:
parent
c40c2b4ae9
commit
cf0dd37025
2 changed files with 16 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
2024-06-30 hwpplayer1 <hwpplayer1@debian>
|
2024-06-30 hwpplayer1 <hwpplayer1@debian>
|
||||||
|
|
||||||
|
* src/scope_example.cpp: scope example sum of 1 to 10 inclusive is explained
|
||||||
|
|
||||||
* src/if_statement.cpp: if statement explained/code written
|
* src/if_statement.cpp: if statement explained/code written
|
||||||
|
|
||||||
2024-06-24 hwpplayer1 <hwpplayer1@debian>
|
2024-06-24 hwpplayer1 <hwpplayer1@debian>
|
||||||
|
|
14
src/scope_example.cpp
Normal file
14
src/scope_example.cpp
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int sum = 0;
|
||||||
|
for (int val = 0; val <= 10; ++val)
|
||||||
|
|
||||||
|
sum += val;
|
||||||
|
std::cout << "Sum of 1 to 10 inclusive is "
|
||||||
|
<< sum << std::endl;
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue