#2
邹生笑谈2023-10-11 00:25
|
程序代码:
#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;
}
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.
我按按键后黑框就消失了