#include <stdio.h>
int main() {
// Using a while loop to print numbers from 1 to 5
printf("While Loop Example:\n");
int i = 1;
while (i <= 5) {
printf("%d\n", i);
i++;
}
return 0;
}
#include <stdio.h>
int main() {
// Using a while loop to print numbers from 1 to 5
printf("While Loop Example:\n");
int i = 1;
while (i <= 5) {
printf("%d\n", i);
i++;
}
return 0;
}