testing of independece of attributes by chi square method ,,please write a c code for this.

Do you know what chi square is?
Do you know what the computer language c is?
If the answer to both questions is yes, why not show us what you already have coded and the problems you are having with that.
We are here to help.

If you just want a program to test chi squared then you wil find many versions via a trivial web search.
If you want to learn how to program it yourself, then show what you have already done and we will help from there.
If you want someone to give you a program that you can submit as your own homework then you are in the wrong place (in more senses than one).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.