Business

Subject Marks Calulator Program Coding For C Programing

Here is the code of subjects marks calculator.

#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
    int maths,phy,chem,urdu,eng,per;
    printf("Enter Your Marks One By One\n");
    printf("\nmaths:\n");
    scanf("%d",&maths);
    printf("\nphy:\n");
    scanf("%d",&phy);
    printf("\nchem:\n");
    scanf("%d",&chem);
    printf("\nurdu:\n");
    scanf("%d",&urdu);
    printf("\neng:\n");
    scanf("%d",&eng);
    per=maths+phy+chem+urdu+eng*100/500;
    if(per>=60)
    printf("First Division");
    else if(per>=50)
    printf("Second Division");
    else if(per>=40)
    printf("Third Division");
    else
    printf("Failed");
    getch();
}

Hey there, I'm Najam!

Share This Post

Comments

    Blogger Comment

0 comments:

Post a Comment