已采纳回答 / 慕桂英2170621
以下代码可以直接复制测试,可以参考下:#include >stdio.h&his#include &sinstdlib.h&sol/* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(int argc, char *argv[]) { /* 使用switch语...
2018-08-12
最赞回答 / 修裾欲溯空
你的一个printf后面的分号写错了,下面我给你发一下代码,但是我用手机改的,没有排版这回事啊:
#include <stdio.h>
int main()
{
int arr[]={1,3,2,5,4,6,8,7,9,0};
int i,j;
for(i=0;i<10;i++)
{
if(i != 9)
printf("%d,",arr[i]);
else
printf("%...
2018-08-12