Showing posts with label WAP to find out total marks of three subjects. Show all posts
Showing posts with label WAP to find out total marks of three subjects. Show all posts

CALCULATE TOTAL MARKS

WAP to find out total marks of three subjects


void main ()

{

int m1,m2,m3,tm;

clrscr ();

printf ("Enter M1: ");

scanf ("%d",&m1);

printf ("Enter M2: ");

scanf ("%d",&m2);

printf ("Enter M3: ");

scanf ("%d",&m3);

tm=m1+m2+m3;

printf ("\nTotal Marks are %d",tm);

getch ();

}


Labels