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 mark1,mark2;
    int sum=0;
    float average=0;
  
    printf("Enter mark1: ");
    scanf("%d", &mark1);
  
    printf("Enter mark2: ");
    scanf("%d", &mark2);
  
    sum=mark1+ mark2;
    average= sum/2;
  
    printf("The average mark is: %.2f",average);
    return 0;
  }
  
  