Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char monthName[12][15] = {"Janeiro","Fevereiro","Marco","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"};
- int month;
- int monthGrid[12][2] = {
- {1, 31},
- {2, 29},
- {3, 31},
- {4, 30},
- {5, 31},
- {6, 30},
- {7, 31},
- {8, 31},
- {9, 30},
- {10, 31},
- {11, 30},
- {12, 31}};
- printf("Entre com o numero do mes desejado :\n");
- scanf("%d",&month);
- printf("Mes : %s\nNumero de dias : %d",monthName[month-1],monthGrid[month-1][1]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment