Answers for "diffrence between two numbers in an array"

0

diffrence between two numbers in an array

int lownum=0, highnum=0, diffrence=0, 
arr[28,16,28,11,14,26,23,25,17,3,22,23,23,10];
for(int i=0, i<arr.lenght, i++){
	if(lownum>arr[i]){
    lownum=arr[i];
    }if(highnum<arr[i]){
    highnum=arr[i];
    }
}diffrence = highnum - lownum;
Posted by: Guest on October-04-2021

Code answers related to "diffrence between two numbers in an array"

Browse Popular Code Answers by Language