Skip to content

Files

Latest commit

 

History

History

Minimum_Difference_in_Array

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
This code takes array elements as input from the user and then calls a function to calculate the minimum difference between elements in the entered array, the absolute difference between elements to be specific. The function returns the minimum difference to the main function, if there are just 0 or 1 elements in the entered array then the function returns the maximum Integer value to the main function. The main function then prints the minimum difference.