You are on page 1of 1

// Online C compiler to run C program online

#include <stdio.h>

int main() {

float a,sum, perm,perin,m,in,ba,bat,perba,bs,perbs,ms,mst,perms,permp,mp;


// Write C code here
printf("Enter Etea Marks ");
scanf("%f",&a);
printf(" Enter Matric Marks ");
scanf("%f",&m);
perm = (m*20/1100);
printf(" Percentage of Matric %f \n ",perm);
printf(" Enter inter Marks ");
scanf("%f",&in);
perin = (in*20/1100);
printf(" Percentage of Intermediate %f \n ",perin);
printf(" Enter BA/BSC Marks ");
scanf("%f",&ba);
printf(" Enter BA/BSC total Marks ");
scanf("%f",&bat);
perba = (ba*20/bat);
printf(" Percentage of BA/BSc %f \n ",perba);
printf(" Enter BS GPA ");
scanf("%f",&bs);
perbs = (bs*40/4);
printf(" Percentage of BS %f \n ",perbs);
printf(" Enter MA/Msc Marks ");
scanf("%f",&ms);
printf(" Enter MA/Msc total Marks ");
scanf("%f",&mst);
perms = (ms*20/mst);
printf(" Percentage of Master %f \n ",perms);
printf(" Enter Mphil Marks ");
scanf("%f",&mp);
permp = (mp*5/4);
printf(" Percentage of Mphil %f \n ",permp);
sum = a+ perm + perin + perba + perbs + perms + permp;
printf("Total Merit List Marks %f",sum);

return 0;
}

You might also like