How to return divisible numbers in C language
Most people do not understand the knowledge points of this article "how to return divisible numbers in C language", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article, let's take a look at this "C language how to return divisible numbers" article.
Rewrite to set the interval and divisor, and return the number that is divisible.
# include int main () {/ / define arguments and starting numbers and divisors int I, start, end,divisor; printf ("Please input a starting number:"); scanf ("% d", & start); printf ("Please input an end number:"); scanf ("% d", & end); printf ("Please input an integer as the divisor:"); scanf ("% d", & divisor) / / returns the number for (I = start; I) that is divisible by the divisor in a given interval