Skip to content

Instantly share code, notes, and snippets.

@NguyenTatNhac
Last active January 13, 2023 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NguyenTatNhac/83f0450a5f015438b93a5199a4697f82 to your computer and use it in GitHub Desktop.
Save NguyenTatNhac/83f0450a5f015438b93a5199a4697f82 to your computer and use it in GitHub Desktop.
#include <stdio.h>
void printList(char* list[]) {
printf("<ol>\n");
int i = 0;
while (list[i] != NULL) {
printf("<li>%s</li>\n", list[i]);
i++;
}
printf("</ol>");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment