C Program to Find Percentage of Five Subject

#include<stdio.h>
int main()
{
    int guj, hindi, maths, sc, ss;
    float per;
    printf("Enter Mark of Gujrati: ");
    scanf("%d",&guj);
    printf("Enter Mark of Hindi: ");
    scanf("%d",&hindi);
    printf("Enter Mark of Maths: ");
    scanf("%d",&maths);
    printf("Enter Mark of Science: ");
    scanf("%d",&sc);
    printf("Enter Mark of Social Science: ");
    scanf("%d",&ss);

    per = (guj + hindi + maths + sc + ss)/5;

    printf("Persantage = %.2f",per);

    return 0;
}

Output

Enter Mark of Gujrati: 84
Enter Mark of Hindi: 78
Enter Mark of Maths: 92
Enter Mark of Science: 94
Enter Mark of Social Science: 75
Persantage = 84.00