Skip to content

Commit

Permalink
Create test3.c
Browse files Browse the repository at this point in the history
  • Loading branch information
AniMB committed Apr 18, 2024
1 parent d3537e7 commit cd931de
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test3.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <stdio.h>

void printEvenNumbers(int n) {
printf("Even numbers up to %d are: ", n);
for (int i = 0; i <= n; i += 2) {
printf("%d ", i);
}
printf("\n");
}

int main() {
int limit = 20;
printEvenNumbers(limit);
return 0;
}

0 comments on commit cd931de

Please sign in to comment.