#include <iostream>
#include <string>
#include <stdlib.h>

using namespace std;

int main(void) 
{	
	const int SIZE = 5;
							   	
	struct Student {
		string name;
		string matrix;
		int age;
	};
	
	Student students[SIZE];
	
	for(int i=0; i<SIZE; i++) {
		cout << "Entering data for student - " << i+1 << endl;
		
		cout << "Enter student name: ";
		cin >> students[i].name;
		
		cout << "Enter student matrix: ";
		cin >> students[i].matrix;
		
		cout << "Enter student age: ";
		cin >> students[i].age;	
		
		system("CLS");	
	}
	
	cout << endl;
	
	for(int i=0; i<SIZE; i++) {
		cout << "Printing data for student - " << i+1 << endl;
		cout << "Student name: " << students[i].name << endl;
		cout << "Student matrix: " << students[i].matrix << endl;
		cout << "Student age: " << students[i].age << endl;	
		cout << endl;
	}
	
    return 0;
} 
