#include int main() { int i,j,temp,n,cnt=0; scanf("%d",&n); int data[n]; for(i=0;idata[j+1]){ temp = data[j]; data[j] = data[j+1]; data[j+1] = temp; } } } for(i=1;i