#include <stdio.h>
int main( ) {
// กำหนดชื่อเดือนและจำนวนวันของแต่ละเดือน
char * months[ ] = {
"January" , "February" , "March" , "April" , "May" , "June" ,
"July" , "August" , "September" , "October" , "November" , "December"
} ;
int days[ ] = { 31 , 28 , 31 , 30 , 31 , 30 , 31 , 31 , 30 , 31 , 30 , 31 } ;
// แสดงตารางเดือนและจำนวนวัน
printf ( "-------------------------\n " ) ;
for ( int i = 0 ; i < 12 ; i++ ) {
printf ( "%-10s\t %d\n " , months
[ i
] , days
[ i
] ) ; }
return 0 ;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIC8vIOC4geC4s+C4q+C4meC4lOC4iuC4t+C5iOC4reC5gOC4lOC4t+C4reC4meC5geC4peC4sOC4iOC4s+C4meC4p+C4meC4p+C4seC4meC4guC4reC4h+C5geC4leC5iOC4peC4sOC5gOC4lOC4t+C4reC4mQogICAgY2hhciAqbW9udGhzW10gPSB7CiAgICAgICAgIkphbnVhcnkiLCAiRmVicnVhcnkiLCAiTWFyY2giLCAiQXByaWwiLCAiTWF5IiwgIkp1bmUiLCAKICAgICAgICAiSnVseSIsICJBdWd1c3QiLCAiU2VwdGVtYmVyIiwgIk9jdG9iZXIiLCAiTm92ZW1iZXIiLCAiRGVjZW1iZXIiCiAgICB9OwoKICAgIGludCBkYXlzW10gPSB7MzEsIDI4LCAzMSwgMzAsIDMxLCAzMCwgMzEsIDMxLCAzMCwgMzEsIDMwLCAzMX07CiAgICAKICAgIC8vIOC5geC4quC4lOC4h+C4leC4suC4o+C4suC4h+C5gOC4lOC4t+C4reC4meC5geC4peC4sOC4iOC4s+C4meC4p+C4meC4p+C4seC4mQogICAgcHJpbnRmKCJNb250aFx0XHREYXlzXG4iKTsKICAgIHByaW50ZigiLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuIik7CiAgICAKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgMTI7IGkrKykgewogICAgICAgIHByaW50ZigiJS0xMHNcdCVkXG4iLCBtb250aHNbaV0sIGRheXNbaV0pOwogICAgfQoKICAgIHJldHVybiAwOwp9