hey, i'm supposed to prompt a user to enter 6 sets of numbers, find the difference of each set based on which number is greater(so that no negative number will be seen, enter the difference into the array, rearrange the array in ascending order and then print the array.

the problem im getting is that it is accepting the numbers but not finding the difference or assigning it to points in the array...can anyone help me?? thanks alot.

this is the code i have so far

```
#include <stdio.h>
main () {
int nums[6];
int num1 , num2, i, diff= 0, pass, min, minlock, temp;
for (i=0; i<=6; i++){
printf (" Please enter first number :");
scanf ("%d", &num1);
printf ("please enter second number :");
scanf ("%d", num2);
if (num2 > num1);
diff = (num2- num1)
else diff = (num1 - num2);
scanf ("%d", &nums[i] );
}
for (pass=0; pass<=6 -1; pass++){
min= 3200;
for (i = pass;i<=6-1;i++){
if (nums[i]< min){
min= nums[i];
minlock= i;
}
temp = nums[pass];
nums[pass];
nums[minlock]= temp;
}
for (i=0; i<6;i++)
printf ("%sd", nums[i]);
return (0);
}
}
```