hello all;
I was running this simplep program and get an error . can anyone tell me whats wrong with it
code
# include < iostream >
using std::cout
int main()
{
for ( int x=1; x<= 10; x++ )
{
if ( x>5)
break;
cout << x <<" ";
}
error message
syntax error : 'int' should be preceded by ';'
thanks
I was running this simplep program and get an error . can anyone tell me whats wrong with it
code
# include < iostream >
using std::cout
int main()
{
for ( int x=1; x<= 10; x++ )
{
if ( x>5)
break;
cout << x <<" ";
}
error message
syntax error : 'int' should be preceded by ';'
thanks
Comment