问题遇到的现象和发生背景
我感觉我的代码没问题啊,怎么会运行出这些乱码?问题出在哪里了
遇到的现象和发生背景,请写出第一个错误信息


用代码块功能插入代码
```c
#include<stdio.h>
int main()
{
int n,i=0,j;
int a[100];
scanf("%d",&n);
while(n!=1)
{
if(n%2!=0)
{
n=n*3+1;
}
else
{
n=n/2;
}
a[i]=n;
i++;
}
for(j=i-1;j>=0;j++)
{
printf("%d ",a[j]);
}
return 0;
}
```,请勿粘贴截图。 不用代码块回答率下降 50%