Change this
scanf("%d/%d/%d", &tom.month, &tom.day, &tom.year
to this
scanf("%d %d %d", &tom.month, &tom.day, &tom.year
Type: Posts; User: std10093
Change this
scanf("%d/%d/%d", &tom.month, &tom.day, &tom.year
to this
scanf("%d %d %d", &tom.month, &tom.day, &tom.year