注意:此页面搜索的是所有试题
[分析题,5分]
#include <stdio.h>
#define N 6
void main ()
{
int a[N]={2,5,-6,4,-9,10}, i;
for (i=0;i<N;i++)
{
if(a[i]<0) continue;
printf("% 3d",a[i]);
}
printf ("\n");
}
#include <stdio.h>
#define N 6
void main ()
{
int a[N]={2,5,-6,4,-9,10}, i;
for (i=0;i<N;i++)
{
if(a[i]<0) continue;
printf("% 3d",a[i]);
}
printf ("\n");
}
参考答案