#include <stdio.h>
void DesSort(int arr[], int len) {
int tmp;
for (int i=0; i<len-1; i++) {
for(int j=0; j<len-1-i; j++) {
if (arr[j]<arr[j+1]) {
tmp=arr[j];
arr[j]=arr[j+1];
arr[j+1]=tmp;
}
}
}
}
int main() {
int arr[7]={0,};
int len=7;
for (int i=0; i<7; i++) {
scanf("%d",&arr[i]);
}
DesSort(arr,len);
for (int i=0; i<7; i++) {
printf("%d",arr[i]);
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: