I am writing a program which will find matching position of similar charecter between three sequences. 1 2 3 4 5 6 7 8 9 suppose, S1=T C C A T A G T C S2=A G C T A A T A G S3=G G A T T A G C T Now, I want to print for A like, (4,1,3) (6,5,6) (0,6,0) (0,8,0) For T, (1,4,4) (5,7,5) (8,0,9) For G, (7,2,1), (0,9,2) (0,0,7) For C, (2,3,8) (3,0,0) (9,0,0) plz,help me....
#include <stdio.h> int main() { int s1[9]={'T','C','C','A','T','A','G','T','C'}; int loop; for(loop=0;loop<9;loop++) { if(s1[loop]=='T') printf("%d\t",loop+1); } return 0; }