#include <iostream> using namespace std; int main (){ int studentNum; int sudentGrade; int avarageGrade; int countStudent = 0; cout << "Please enter the number of student = "; cin >> studentNum; while (studentNum>countStudent) { cout << "Please enter the grade = "; cin >> sudentGrade; } system("pause"); return 0; }
while
0
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)