You are on page 1of 1

#include <iostream>

#include <cstdlib>
using namespace std;
void input(int x[], int size){
for(int i=0;i<size;i++){
cout<<"Enter marks of student "<<i+1<<" : ";
cin>>x[i];
}
cout<<"\n SHOWING DATA OF STUDENTS\n\n";
for(int i=0;i<size;i++){
cout<<"Student "<<i+1<<" secure "<<x[i]<<'\n';
}
}
int main(){
int *a=new int[5];
cout<<"Storing the five students marks : \n";
input(a,5);
delete a;
return 0;
}

You might also like