Remember to checkout the Codesnip below to review the C++ code yourself! Feel free to copy the code, but I ask that you please provide credit if you leave the code unchanged when you use it.
//Programmer: Nazmus //Program: Counting //Purpose: Learning to count in C++ with Test Grades //Website: EasyProgramming.net #include <iostream> using namespace std; void main() { int pass, fail, grade, i; pass = 0; fail = 0; i = 1; while(i<=10){ cout << "Please enter the grade: "; cin >> grade; if(grade >=65) pass++; else fail++; i++; } cout << "There are " << pass << " passes and " << fail << " failures in the class." << endl; system("pause"); }