this was my task: Ask the user to enter a number, and then read in the number from the keyboard. Print out the number and also output whether the number is positive, negative or zero, and also output whether the number is even or odd.
look at my program attached to this post. thanks!
}
for (numb1=numb1+0; numb1%2=0;) //line27 error:invalid lvalue in assignment
{
cout<<" and is positive";
}
for (numb1=numb1+0; numb1%2><0;) //line31 error: expected primary-expression before '<' token
{
cout<<" and is negative ";
}
look at my program attached to this post. thanks!
}
for (numb1=numb1+0; numb1%2=0;) //line27 error:invalid lvalue in assignment
{
cout<<" and is positive";
}
for (numb1=numb1+0; numb1%2><0;) //line31 error: expected primary-expression before '<' token
{
cout<<" and is negative ";
}
Comment