<|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
Write a function in C to print numbers from 1 to 100 each in a new line.
<|im_end|>
<|im_start|>assistant
#include<stdio.h>
 
// Function to print number from 1 to 100
void printNumbers() {
    // Loop to print the numbers from 1 to 100
    for (int i = 1; i <= 100; i++) {
        printf("%d\n", i);
    }
}<|im_end|>
