I need to create a counter and display it at the end of my program. I need to use this counter to show how many course applications where accepted and rejected based on certain criteria the student has to met to be accepted on to the course, Once the accepted counter has reached 6 or if the user presses say the q key to to quit the program has to stop
This is what ive done so far and when I run it I cant understand the errors so if people can help me smooth it out so it works and explain it to me that will be great
Code:
#include <conio.h> 
#include <stdio.h> 

void main (void)
{
     char ch;
     int year1;
     int year2;
     int name

     
     
     printf ("Please input applicates full name");
     if (name = %d)printf($d "application record");
     else printf ("Please input applicates name");//if nothing is enterd
     
     
     
     printf ("Please input" %d "maths grade: ");
     ch = getche(a, b, c, d);
     if(get che = a)printf("passed");
     if(get che = b)printf("passed");
     if(get che = c)printf("passed");
     if(get che = d)printf("fail");
     else printf("Please input" %d "maths grade: ");// if nothing is entered
     
     printf ("Please input" %d "english lit grade: ");
     ch = getche(a, b, c, d);
     if(get che = a)printf("passed");
     if(get che = b)printf("passed");
     if(get che = c)printf("passed");
     if(get che = d)printf("fail");
     else printf("Please input" %d "english lit grade: ");// if nothing is entered
  
     printf ("Please input" %d "english lag grade: ");
     ch = getche(a, b, c, d);
     if(get che = a)printf("passed");
     if(get che = b)printf("passed");
     if(get che = c)printf("passed");
     if(get che = d)printf("fail");
     else printf("Please input" %d "english lag grade: ");// if nothing is entered
  
     printf ("Please input" %d "science grade: ");
     ch = getche(a, b, c, d);
     if(get che = a)printf("passed");
     if(get che = b)printf("passed");
     if(get che = c)printf("passed");
     if(get che = d)printf("fail");
     else printf("Please input" %d "science grade: ");// if nothing is entered
     
    
     printf ("Please enter the year of" %d "born: ");//year1
     printf ("Please enter current year: ");//year2
     if (year1 = 1994 - year2 = 2009)printf("15 is not accepted age");
     if (year1 = 1993 - year2 = 2009)printf("16 is an accepted age");
     if (year1 = 1992 - year2 = 2009)printf("17 is an accepted age");
     if (year1 = 1991 - year2 = 2009)printf("18 is an accepted age");
     if (year1 = 1990 - year2 = 2009)printf("19 is an accepted age");
     if (year1 = 1989 - year2 = 2009)printf("20 is an accepted age");
     else (year1 = 0 - year = 0)printf("Please input the year of" %d "born and current year" );//if nothing is entered
         
    
     printf ("Please state if" %d "is employed or unemployed: ");
     ch = getche(e, u);
     if (get che = e)printf (%d "is employed therefore cannot do course");
     if (get che = u)printf (%d "is unemployed therefore can do course");
     else printf ("Please state if" %d "is employed or uneployed: ");//if nothing is entered
    
    
     printf ("Please confirm" %d "information: ");
     printf ("Math grade entered: ");
     printf ("English lit grade entered: ");
     printf ("English lag grade entered: ");
     printf ("Science grade entered: ");
     printf ("Age: ");
     printf ("Job status: ");
     
     printf ("If this information is correct, press y, If this information isnt correct, press n");
     ch = getche(y, n);
     if (getche = y)
     printf ("Based on information entered the math grade is: ");//
     printf ("Based on information entered the english lit grade is: ");//
     printf ("Based on information entered the english lan grade is: ");//
     printf ("Based on information entered the science grade is: ");//
     printf ("Based on information entered age is: ");//
     printf ("Based on information entered job status is: ");//
     if (getche = n) //loop to be entered in here
     else printf ("If this information is correct, press y, If this information isnt correct, press n");//if nothing is entered
    
     system("pause");
     return 0;
     
}