January 1, 2018 Final Exam EEN 2312 3) 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, or “x is negative and even” if x is negative and even. (2 points) Note: The if else statement should always work without modification and 3.1 regardless of the value stored in the variable x. int x =-10;

Here is the solution, do give me a thumbs up if this helps!
if(x>=0 && x%2==1)
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"