Question: int main ( int argc, char * * argv ) { / / add code above this line } Collapse Conditionals Coding Exercises: Condi _

int main(int argc, char** argv){//add code above this line}
Collapse
Conditionals Coding Exercises: Condi_
Exercise 3
Conditionals Exercise 3
Problem
Use the variable x as you write this program. x will represent a positive integer. Write a program that determines if x is divisible by 5 and is an even number. If yes, print _ is divisible by 5 and even, where the blank (-) is the value of x. If no, print _ is not divisible by 5 or it is odd, where the blank , is the value of xx.
Type Casting
Expected Output
If x is 8, then the output should be: 8 is not divisible by 5 or it is odd.
If x is 80, then the output should be: 80 is divisible by 5 and even.
If x is 105, then the output should be: 105 is not divisible by 5 or it is odd.
Click to compile your code
Test your code with a few different values
Conditionals Exercise 3
When your code is ready, click the button below to submit your work for grading.
int main ( int argc, char * * argv ) { / / add

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 Finance Questions!