GEEN 2312 Final Exam 3) 3.1 Complete the following code segment by writing an if else statement that tests whether the integer stored in the variable x is positive and odd, or negative and even. Display the message “x is positive and odd” if x is positive and odd, and “x is negative and even” if x is negative and even. (2 points) Note: The if else statement should always work without modification and regardless of the value stored in the variable x int x =-10;

So the code for if else statement would be using remainder(modulus operator %) and > or 0)
cout
 
“Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!”

What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."

"Order a Custom Paper on Similar Assignment! No Plagiarism! Enjoy 20% Discount"