Yes I can....help me in debugging the program.....
for cofactor, please see here.....
[link]http://en.wikipedia.org/wiki/Cofactor_(linear_algebra)[/link]