#include void imprimir_mes(int dia_inicial, int cantidad_dias) { printf(" D L K M J V S\n"); for ( int i = 0; i < dia_inicial; ++i ) printf(" "); for ( int i = 0; i < cantidad_dias; ++i ) { printf("%2i ", i + 1); if ( (dia_inicial + i + 1) % 7 == 0 ) putchar('\n'); } putchar('\n'); } int main() { imprimir_mes(4, 30); return 0; }