#include <stdio.h>
#include <conio.h>
void main(void)
{ char name[4];
int i,l,s;
printf("Enter Seq");
scanf("%c",name[i]);
clrscr();
for(i=0; i<4 ;i++)
{
{if(name[1]=='a')
l=2;
{if(name[1]=='t')
l=-2;
{if(name[1]=='g')
l=5;
{if(name[1]=='c')
l=-1;
}
s=l;
}
printf("Score is %d",s);
getch();
}
I am not getting an error but then again I am not getting my result. Please tell me What is the problem in my algorithm or Program.

New Topic/Question
Reply



MultiQuote






|