在C中,我们怎样才能将无限循环转换为有限循环而不在for循环的语法中扭曲任何东西....
#include<stdio.h>
#include<conio.h>
int main()
{
int a;
a=1;
a++;
for( ; ; )
{
a<=10;
printf("%d",a);
}
getch();
}
Run Code Online (Sandbox Code Playgroud) c ×1