Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions PercentageCalculator.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include <stdio.h>

int main()
{
int chemistry , physics , maths , english , computers;
float total;

printf("Enter Your Chemistry Marks\n");
scanf("%d", &chemistry);
printf("Enter Your Phyics Marks\n");
scanf("%d", &physics);
printf("Enter Your Maths Marks\n");
scanf("%d", &maths);
printf("Enter Your English Marks\n");
scanf("%d", &english);
printf("Enter Your Computers Marks\n");
scanf("%d", &computers);

total = ((chemistry + physics + maths + english + computers)/500.0)* 100;
printf("Your Percentage is : \n");
printf("%.4f" , total);
return 0;
// pull by khushbu078
}