C++ Program to find the Marks Percentage

#include
#include
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;
}

By Antony Agnel

I love helping people use WordPress and get better at blogging every day. Been doing that for 9+ years now.

5 comments

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.