C语言的编写程序,不会做啊,急

img

#include<stdio.h>
int main() {
    int a,b,c,t,i;
    printf("Input a,b,c:");
    scanf("%d %d %d",&a,&b,&c);
    printf("Before:a=%d,b=%d,c=%d\n",a,b,c);
    for(i=0; i<2; i++) {
        if(a>b) {
            t=a;
            a=b;
            b=t;
        }
        if(b>c) {
            t=b;
            b=c;
            c=t;
        }
    }
    printf("After:a=%d,b=%d,c=%d",a,b,c);
    return 0;
}

觉得有用的话采纳一下哈

不就是冒泡排序么