只有哈哈输出,没有一个嘿嘿输出呢
# include <stdio.h>int main(void)
{
int i, j, count = 0;
int a[5] = {9, 5, 2, 7, 6};
for (i=0; i<5; i++)
{
for (j=1; (a[j]<a[i])&&j<3; j++)
{
if (i==1 && j == 2)
printf("嘿嘿\n");
printf("哈哈 ");
}
}
printf("\n");
return 0;
}