Posts by Pedro leal • 51 points
1 post
-
5
votes3
answers223
viewsA: How to simplify a problem to get the names of the months of the year?
Store months in an array: const char *strings[] = {"Janeiro","Fevereiro"...};, and access the respective month with user input: printf("Numero do mes: \n"); scanf("%d",&mes); printf("%s",…