Back To C++ Single Dimensional Arrays Index
//program to input an integer array of marks in 5 subjects and calculate percentage #include
#include
void main() { int marks[5]; int i,total=0; float percentage; for(i=0;i<5;i++) { cout<<"\nenter marks in subject "<
>marks[i]; total=total+marks[i]; } cout<<"total number of marks in five subjects are "<