Develop a loop starting from the largest number


Problem:

Develop a function named printIntegers that accepts two numeric arguments a and b, and prints all integers between a and b in decreasing order. The function will not return any value. For instance, printIntegers(2.5,8.9) will print 8, 7, 6, 5, 4, and 3. printIntegers(8.7,8.9) will not print any integer. printIntegers(10,3.5) will print 10, 9, 8, 7, 6, 5, and 4. You do not need to check the validity of the arguments. You are not allowed to use seq function. You should develop a loop starting from the largest number and decrease the number by 1 until reaching the smallest integer to print.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Develop a loop starting from the largest number
Reference No:- TGS03221154

Expected delivery within 24 Hours