Sure, a lot of people here CAN do that, but first tell us why we should do your work for you? There are hundreds of "Can you do this for me?" types of requests, and the general answer is "You will learn more if you do it yourself. Show us what you've done, and we'll help you to go further."
Your best bet is to write down the operation of a flip-flop circuit. A timing chart will probably help. Then code it. Oh, and don't freak out. You'll see it's very simple.
A flip flop in C would be cake and pie if you had defined how it is being used.
Is it just a pure code beastie?
Is it inside an embedded controller using external pins?
What color do you want that flip flop? (Note: mauve has the most RAM)
k thanks i have search and understand the RS flip flop now i m going to understand JK flip flop but i don't understand what CP Clock and why it is used in jk flip flop. Can u help to slove this question