text: /* Exercise 1 - Calculations
  
     Write a C program to input marks of two subjects. Calculate and print the average of the two marks. */
  
  #include <stdio.h>
  
  int main() 
  {
    int sub1,sub2,total,avg;
  
    printf("Enter subject 1 mark : ");
    scanf("%d",&sub1);
  
    printf("Enter subject 2 mark : ");
    scanf("%d",&sub2);
  
    total=sub1+sub2;
    avg=total/2;
  
    printf("Average = %d",avg);
    
    return 0;
  }
  
  