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: The While Loop //Purpose: To learn the "while" loop //Website: EasyProgramming.net #include <iostream> using namespace std; int main() { int count, i; count = 0; i = 5; while(i<10){ count = count + i; i++; cout << "Count is " << count << '.' << endl; } system("pause"); }