write a program to accept the marks of 6 subject from user and Store them into an array. then display the marks.
Answers
Answered by
0
Answer:
#include<iostream>
Using namespace std;
Main()
{
Int arr[6];
Int i;
For(i=0;i<6;i++)
{
Cout<<"enter the mark of student:" <<i<<endl;
Cin>>arr[i] ;
}
For(i=0;i<6;i++)
{
Cout<<arr[i];
}
Explanation:
First give the size of array 6 as you want to store 6 students data now use tge loop so that you daont have to input mark again and again the loop will work for you
Mark as brainliest
Similar questions