Question
Practice 7.8 Write a C program that contain a user-defined function numbers(). When the function is called as number(start,end) , where start and end are
Practice 7.8
Write a C program that contain a user-defined function numbers(). When the
function is called as number(start,end), where start and end are an integers.
In the numbers() function, it will determine if each number in the range
between start and end is divisible by 7
It would print '## is divisible by 7', where ## is the actual value of x.
Otherwise it checks if the range is correct and prints ' incorrect range '
Complete the program with a loop within main() that call the above function
with the following values :
start,end = 0,130 start,end = 25,240 start,end = 150,20.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started