Question: Make sure you review the Cheating & Plagiarism policy on Canvas. Write a program that prompts the user for two integers. In addition to printing

Make sure you review the Cheating & Plagiarism policy on Canvas.
Write a program that prompts the user for two integers. In addition to printing all
numbers between the first number and the second number, 10 numbers on each
line, the program:
Counts and prints number of integers divisible by 3 and 12.
Counts and prints number of integers divisible by 3 or 12.
Counts and prints number of integers divisible by 3 but not 12.
Calculates the average of all even positive integers, rounded to one digit.
Calculates the average of all odd negative integers, rounded to one digit.
Use a while loop. Count zero as a positive number.
Here is a sample run:
Enter first number -12
Enter second number 33
Number of integers divisible by 3 and 12: 4
Nmber of integers divisible by 3 or 12: 16
Number of integers divisible by 3 but not 12: 12
Average even positive integers:16.0
Average odd negative integers: -6.0
Make sure you review the Cheating & Plagiarism

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