#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; iprintf("\n sales %d sales: ",i+1);scanf("%d", &s[i]);}for(i=0; ifor(j=i+1; jif(s[i] > s[j]){p= s[i];s[i] = s[j];s[j] = p;}}}printf("\n sales lowest to highest: ");for(i=0; iprintf("\nsales %d ", s[i]);}printf("\n highest: %d ",t);getch();}it should be:highest : 2000
it should be:
highest : 2000
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here