Question: #include int main() { int number; printf(Enter an integer: ); scanf(%d, &number); //Is number negative? if(number < 0) { printf(%d is negative. ,number); } else

#include

int main() { int number; printf("Enter an integer: "); scanf("%d", &number); //Is number negative? if(number < 0) { printf("%d is negative. ",number); } else { printf("%d is not negative ", number); } return 0; }

Instructions

1) Modify this program to test explicitly for positive, negative, and zero. 2) Determine whether the integer is even or odd. (hint: use the modulus operator %)

Please help with the program in C programming language. Thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!