In: Computer Science
Create a C program that will test the following
:
Theory (0-70): 65
Laboratory (0-30): 25
Total Marks: 90
#include <stdio.h>
int main()
{
    int theory_marks,lab_marks,total_marks;
    // take input of theory marks
    printf("Enter theory marks out 70: ");
    scanf("%d",&theory_marks);
    // take input of lab marks
    printf("Enter Laboratory marks out of 30: ");
    scanf("%d",&lab_marks);
    // sum the theory and lab marks
    total_marks=theory_marks+lab_marks;
    // output the total marks
    printf("\nTotal marks out of 100: %d ",total_marks);
    return 0;
}


PLEASE LIKE THE SOLUTION :))
IF YOU HAVE ANY DOUBTS PLEASE MENTION IN THE COMMENT