#include<stdio.h>
int main()
{
    int a[10],i,j,k,temp;
    for(i=0;i<5;i++) scanf("%d",&a[i]);
    for(i=0;i<5;i++){
        for(j=0;j<4;j++){
            if(a[j]>a[j+1]){
                temp=a[j];
                a[j]=a[j+1];
                a[j+1]=temp;
            }
        }
    }
        for(i=0;i<5;i++) printf("%d ",a[i]);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: