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, numbers on each
line, the program:
Counts and prints number of integers divisible by and
Counts and prints number of integers divisible by or
Counts and prints number of integers divisible by but not
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
Enter second number
Number of integers divisible by and :
Nmber of integers divisible by or :
Number of integers divisible by but not :
Average even positive integers:
Average odd negative integers:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
