i need help my program is not running
Code:
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
struct date
{
int day ;
int month;
int year;
};
struct vechile
{
char model[20];
struct date last;
int time;
};
main()
{
// struct vehicle cars[20];
int x,i,cars, day;
printf("how many cars");
scanf("%d",&x);
for(i=0; i<x; i++)
{
printf("car model =>");
fflush(stdin);
gets(cars[i].model);
printf("date of last services", day, month, year);
scanf("%d,%d,%d",&cars[i].last.day&cars[i].last.month,&cars[i].last.year);
printf("how many times cars is served per year");
scanf("%d",&cars[i].times);
for(i=0;i<x;i++);
{
printf("car% %s is due", cars[i] model);
}
}
getch();
}// end of main()
}
{
int d,m,y;
d =veh.last.day;
m=veh.last.month+12/veh.times;
if(m>12)
{
m=m-12;
y=veh.last.year+1;
}
else
{
y=veh.last.year;
printf("%d\%\%d",d,m,y);
}
}