#include int main(){ int d; int s[20],i, j, p, lg=0,m,t=0; char c; printf("Enter number of sale: "); scanf("%d", &d); for(i=0; i s[j]){ p= s[i]; s[i] = s[j]; s[j] = p; } } } printf("\n sales lowest...


#include
int main(){
int d;
int s[20],i, j, p, lg=0,m,t=0;
char c;
printf("Enter number of sale: ");
scanf("%d", &d);


for(i=0; i

printf("\n sales %d sales: ",i+1);
scanf("%d", &s[i]);
}
for(i=0; i
for(j=i+1; j
if(s[i] > s[j]){
p= s[i];
s[i] = s[j];
s[j] = p;
}
}
}
printf("\n sales lowest to highest: ");
for(i=0; i
printf("\nsales %d ", s[i]);
}
printf("\n highest: %d ",t);




getch();
}


it should be:


highest : 2000



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here