#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
int main() {
register int x;
x = 1;
int *list = malloc(3 * sizeof(int));
while (x < 49){
*(list+0) = x%2;
*(list+1) = x%3;
*(list+2) = x%5;
if (x == 1) {
write(1,"->x\n",4);
} else if (*(list+0) == 0 && x != 2) {
write(1,"->x\n",4);
} else if (*(list+1) == 0 && x != 3) {
write(1,"->x\n",4);
} else if (*(list+2) == 0 && x != 5) {
write(1,"->x\n",4);
} else{
write(1,"->o\n",4);
}
x++;
}
free(list);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: