A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

WAP to read marks of student and store them under an array.

#include<iostream>
using namespace std;
int main()
{
int size=5;
int i;
float marks[size];
for(i=0;i<size;i++) //to read the 5 marks
{
cout<<"enter the marks of student"<<i<<"\n";
cin>>marks[i];
}
cout<<"\n";
for(i=0;i<size;i++)// for loop to display the marks
cout<<i <<"marks="<<marks[i]<<"\n";
}











LEARN TUTORIALS

.

.