c语言小白,请问这个为什么跑出来是这样
我按照老师的代码一模一样写的,跑了后就不是正确的结果的
程序代码:#include <stdio.h>
int main (void)
{
int i, n;
printf("Enter the number of iterations: ");
scanf("%d", &n);
for (i=1; i<=n; i++)
printf("This is iteration %d\n", i);
return 0;
}
运行后显示
Process returned 0 (0x0) execution time : 1.324 s
Press any key to continue.
我按按键后黑框就消失了









