sequential circuit with d flip flop

if(clk){


}

What were you trying to accomplish here?

ortonjon:
x=digitalRead(8);

I doubt you're going to be able to read a smiley face with much success. (This is what the CODE tags are there for).

ortonjon:
can you fix my code to do what I want it to.

When is our assignment due by?