Working on an assignment for my C++ homework. Writing a loop that calls a function out of main in order to complete it. However, whenever I begin the loop it just freezes. Anyone have any clue what's wrong?
#include <iostream>
using namespace std;
void AvgGrade(int, int);
int main()
{
int student_id;
int counter, student_number, test1, test2, lab1, lab2, lab3, lab4, final_score, average_score;
cout << "Please enter the number of students: ";
cin >> student_number;
cout << endl;
counter = 0;
while (counter < student_number);
{
cout << "Please enter your Student ID number:";
cin >> student_id;
cout << "Please enter the score for your first test: ";
cin >> test1;
cout << "Please enter the score for your second test: ";
cin >> test2;
cout << "Please enter the score for lab 1: ";
cin >> lab1;
cout << "Please enter the score for lab 2: ";
cin >> lab2;
cout << "Please enter the score for lab 3: ";
cin >> lab3;
cout << "Please enter the score for lab 4: ";
cin >> lab4;