I'm told that there are two issues with this code:
1) Braces are not lined up with loop statement correctly.
2) Loop body is not indented correctly.
I'm not understanding. Any help would be appreciated. Thanks!
#include<iostream>
using namespace std;
int main()
{
int hello = 0;
while( hello < 5)
{
hello++;
cout<<"HELLO!"<<endl;
}
cout << endl;
system ("PAUSE");
}
Thoose are just style problems and not anything that actually affects anything other than your ability to read the code.