Write a program that accepts the name and ID number of 5 students and stores them in an array. After
all the students have been entered, the application should display the title “Student Roster” and then list the names in the array. 2D array
This is what i have so far but i dont know how to put it in a loop rather than type everything for each column and row..can someone help me please.
Code:#include <cstdlib> #include <iostream> #include <string> using namespace std; int main() { string students[5][3]; cout << "Enter ID#: "; cin >> students[0][0]; cout << "Enter First name: "; cin >> students[0][1]; cout << "Enter Last name: "; cin >> students[0][2]; cout << "STUENTS ROSTER" << endl; cout << students[0][0]; system("PAUSE"); return 0; }