解题思路:
注意事项:
参考代码:
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int a[100],n,i,m;
scanf("%d\n",&n);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
scanf("\n%d",&m);
for(i=n-m;i<n;i++)
printf("%d ",a[i]);
for(i=0;i<n-m;i++)
printf("%d ",a[i]);
return 0;
}
0.0分
1 人评分
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:535 |
C语言训练-亲密数 (C语言描述,反正怎么都能对)浏览:2173 |
C语言程序设计教程(第三版)课后习题9.8 (C语言代码)浏览:623 |
C语言程序设计教程(第三版)课后习题10.7 (C语言代码)浏览:673 |
陶陶摘苹果2 (C语言代码)浏览:605 |
简单的a+b (C语言代码)浏览:575 |
幸运数 (C++代码)浏览:2893 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:581 |
孤独的骑士 (C语言代码)浏览:1377 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:526 |