I want to scan the days and later want to display without any header file
Get the data from user
Tuesday
Wednesday
Monday
Thursday
Friday
Display the day entered by user
Tuesday
Wednesday
Monday
Thursday
Friday
I tried
i have to store 7 stringsCode:#include<stdio.h> int main() { int i; char days[8]; for ( i = 0; i < 7; i++) { scanf("%s",days); } for ( i = 0; i < 7; i++) { printf ("Day %s \n", days[i]); } return 0; }
How can we do this without any header file