Dsa Lab1
Dsa Lab1
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
int i;
// Declare an array of Day structures
struct Day calendar[7];
return 0;
}
Sample Output 1
Enter details for Day 1:
Enter the name of the day: Monday
Enter the date of the day: 1
Enter the activity for the day: Meeting
Enter details for Day 2:
Enter the name of the day: Tuesday
Enter the date of the day: 2
Enter the activity for the day: Exercise
Enter details for Day 3:
Enter the name of the day: Wednesday
Enter the date of the day: 3
Enter the activity for the day: Work
Enter details for Day 4:
Enter the name of the day: Thursday
Enter the date of the day: 4
Enter the activity for the day: Study
Enter details for Day 5:
Enter the name of the day: Friday
Enter the date of the day: 5
Enter the activity for the day: Party
Enter details for Day 6:
Enter the name of the day: Saturday
Enter the date of the day: 6
Enter the activity for the day: Relax
Enter details for Day 7:
Enter the name of the day: Sunday
Enter the date of the day: 7
Enter the activity for the day: Family time