<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Find the sum of the first 10 natural numbers using a loop in C.
<|im_end|>
<|im_start|>assistant
// Function to find the sum of first n natural numbers 
int findSum(int n) 
{ 
    int sum = 0; 
    for (int i = 0; i <= n; i++) 
    sum = sum + i; 
  
    return sum; 
} 
  
// Driver program 
int n = 10; 
printf("Sum of first %d natural numbers is %d\n", n, findSum(n)); 
# Output 
Sum of first 10 natural numbers is 55<|im_end|>
