C++ Program to find the Marks Percentage


#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
float sub1,sub2,sub3,sub4,sub5,perc,total;
cout<<"\n\t Enter the Marks obtained in 5 Subjects:";
cin>>sub1>>sub2>>sub3>>sub4>>sub5;
total=sub1+sub2+sub3+sub4+sub5;
perc=(total/500)*100;
cout<<"\n The Percentage marks are:"<<perc<<"%";
return 0;
}

Labels: , , , , , ,