answersLogoWhite

0

#include

using std::cout;

int main()
{
int a = 0;
while (a != 11) //While a does not equal 11
{
a++; //add 1 to a
cout << a << "\n"; //print a and add newline
}
cout<<"The loop has ended";
return 0;
}

User Avatar

Wiki User

15y ago

What else can I help you with?