Program to accept mark of 5 subject to calculate avarage :
 
     void main()
     {
       int s1,s2,s3,s4,s5;
       int avg;
       clrscr();
       printf("enter marks="\n);
        scanf("%d %d %d %d %d",&s1,&s2,&s3,&s4,&s5);
       
      sum=s1+s2+s3+s4+s5;
      
      avg=sum/5;

       printf(avarage="%d",avg);
        getch();
    }

   output :
        enter marks=
            10
            20
            30
            40
            50
         avarage=30