#include #include int main() { int n, sum=0; scanf("%d", &n); int arr[n]; for (int i=0; iarr[j]) { tmp=arr[i]; arr[i]=arr[j]; arr[j]=tmp; } } } for (int i=0; i