我必须使用交换语句按降序对整数进行排序到目前为止我有这个但它不起作用
#include <stdio.h>
int main()
{
int round, num1, num2;
for (round =0; round <= 3; round++)
printf("Enter two integers: \n");
scanf("%d, %d", &num1, &num2);
printf("The numbers in descending order: %d, %d\n", num1,num2);
return 0;
}
void swap(int num1,int num2)
{
if (num1 < num2);
swap (num2, num1);
}