ChangeLog update and scope example explained
This commit is contained in:
		@@ -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;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user