Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

LAB_FUNCTIONS_2

Create a function that takes two parameters of type int . The function should do the following:

  • Check if all the variables are negative . Else print "The numbers should be negative"
  • Check that the first parameter is smaller than the second parameter .
  • Using a loop Print all the numbers bettween the smaller int up to the bigger int .

Note : Ask the user for the 2 numbers . (use input)

Example : when we call the function with parameter1 = -15 , and parameter2 = -4 , the printed output should look like this:

-15.
-14.
-13.
-12.
-11.
-10.
-9.
-8.
-7.
-6.
-5.
-4.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors