Written by Dinesh Thakur

 

void main() 

{
          int a,b,c,d,e;
          float f,g,h;
          clrscr();
          printf("Enter the Marks Subject maths = ");
          scanf("%d",&a);
          printf("Enter the Marks Subject hindi = ");
          scanf("%d",&b);
          printf("Enter the Marks Subject punjabi = ");
          scanf("%d",&c);
          printf("Enter the Marks Subject english = ");
          scanf("%d",&d);
          printf("Enter the Marks Subject science = ");
          scanf("%d",&e);
          f=a+b+c+d+e;
          g=f/5;
          h=(f/500)*100;
          printf("\nTotal Marks = %f ",f);
          printf("\nAverage Marks = %f",g);
          printf("\nPercentage Marks = %f %",h);
          getch();
}

Calculate Average and Percentage





About Us

Dinesh ThakurDinesh Thakur is a Columinist and designer with strong passion and founder of Computer Notes. if you have any ideas or any request me @
linkedin FaceBook Twitter Google Plus