#include<stdio.h>
void main()
{
int c[5],i,j,f;
for(i=0;i<5;i++)
scanf("%d",&c[i]);
for(j=0;j<4;j++)
for(i=0;i<4-j;i++)
{
if(c[i]%10>c[i+1]%10)
{
f=c[i];
c[i]=c[i+1];
c[i+1]=f;
}
}
for(i=0;i<5;i++)
printf("%5d",c[i]);
}
相关文章
- 03-20VueRouter路由跳转报错vue-router.esm.js?fe87:1958 Uncaught (in promise) NavigationDuplicated: Avoided redun
- 03-20第一把机械键盘 ikbc C-87
- 03-20关于ERROR 1366 (HY000): Incorrect string value: '\xF0\x9F\x87\xA8\xF0\x9F...'报错的解决心得
- 03-20【LeetCode】87. Scramble String
- 03-20leetcode 87. Scramble String
- 03-20p87 不可变数组的区间和查询(leetcode 303)
- 03-20ORA-00600: internal error code, arguments: [kcbo_unlink_q_3], [0x3710B87B0]
- 03-20ORA-00600: internal error code, arguments: [kcbo_unlink_q_3], [0x3710B87B0]
- 03-20关于 win7 LoadLibraryEx error 87 (The parameter is incorrect) 异常笔记
- 03-202021-11-18 WPF上位机 87-串口通信和网口通讯