Answer to Question #219842 in C++ for ZAWAIAH BINTI MOHM

Question #219842

Declare an array to store the marks of 100 students and then write the code to input

data into the array.


1
Expert's answer
2021-07-22T18:32:03-0400
#include <iostream>


using namespace std;


int main()
{
    int marks[100];
    cout<<"Enter marks of 100 students\n";
    
    for(int i=0;i<100;i++){
        cout<<"Enter marks for student "<<i+1<<": ";
        cin>>marks[i];
    }


    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS