#include <iostream>
using namespace std;

struct Student 
{
int id;
float cgpa;
};

int main() {
	Student s[3];
	
	for (int i = 0; i < 3; i++) 
	{
		cout << "Enter ID and CGPA for student " << i + 1 << ": " <<endl;;
		cin >> s[i].id >> s[i].cgpa;
	}
	// Display data
	for (int i = 0; i < 3; i++) 
	{
		cout << "Student " << i + 1
		<< " | ID: " << s[i].id
		<< " | CGPA: " << s[i].cgpa << endl;
	}
	return 0;
}