I want to include multiple options in if statement parameter for the same result but with different condition values.
I want to include a new line after printing 8 values.
This is my example:
int main(void) {
uint8_t k;
for (k=0;k<64;k++)
{
printf("%d,",k);
if ((k == 7) && (k == 14) && (k == 21) && (k == 28) && (k == 35) && (k == 42) && (k == 49))
printf("\n");
}
return 0;
}
Aucun commentaire:
Enregistrer un commentaire