I have this code and can't understand the result
code
# include < iostream >
using std::cout;
int main()
{
for ( int x=1; x<= 10; x+=3 )
{
if ( x<5)
continue;
cout << x*x <<" ";
}
}
why do I get 49 and 100 , can anyone explain in plain english please.
thanks
code
# include < iostream >
using std::cout;
int main()
{
for ( int x=1; x<= 10; x+=3 )
{
if ( x<5)
continue;
cout << x*x <<" ";
}
}
why do I get 49 and 100 , can anyone explain in plain english please.
thanks
Comment