Question: C++ Language 1. Create a program to ask for and verify an even number. Check to see if the number they entered is in fact

C++ Language

1. Create a program to ask for and verify an even number. Check to see if the number they entered is in fact even, meaning the number is evenly divisible by 2 (i.e. no remainder).

Example Output Please enter an even number: 20 Nice! Please enter an even number: 21 Boo!

2.Create a program to ask for a divisor, then randomly generate 3 numbers and check each one to see if it is evenly divisible by the divisor.

Example Output Please enter a divisor: 7 130947868 - no 2083942967 - no 901599951 - yes!

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!