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