hi, I just want to ask how to print something using a string, for example, if I am a user, I want to write the word January and print something that is 31 days in January, like this
if (month == 'January') printf ("JANUARY HAS 31 DAYS")
ANYTHING AS IT IS NECESSARY ONLY ONE OF THE CHARACTER
this is my sample code
month symbol
printf ("Enter the name of the month and check how many days"); scanf ("% c", month);
if (month == 'january') {
printf ("JANUARY HAS 31 DAYS);}
LIKE WHAT I JUST WANT TO MAKE THE WORD JANUARY, AND THIS PRINTES LIKE THAT ANYONE CAN HELP ME WITH MY PROBLEM
source share